Revision 6f5e909f
Added by Walden Raines about 10 years ago
engines/bastion/test/products/bulk/products-bulk-action.controller.test.js | ||
---|---|---|
**/
|
||
|
||
describe('Controller: ProductsBulkActionController', function() {
|
||
var $scope, $q, gettext, ProductBulkAction, CurrentOrganization, selected;
|
||
var $scope, $q, translate, ProductBulkAction, CurrentOrganization, selected;
|
||
|
||
beforeEach(module('Bastion.products'));
|
||
|
||
... | ... | |
return {$promise: deferred.promise};
|
||
}
|
||
};
|
||
gettext = function() {};
|
||
translate = function() {};
|
||
CurrentOrganization = 'foo';
|
||
});
|
||
|
||
... | ... | |
|
||
$controller('ProductsBulkActionController', {
|
||
$scope: $scope,
|
||
gettext: gettext,
|
||
translate: translate,
|
||
ProductBulkAction: ProductBulkAction,
|
||
CurrentOrganization: CurrentOrganization
|
||
});
|
Also available in: Unified diff
Fixes #4785, replace gettext with translate for extraction/replacement.