Revision 6f5e909f
Added by Walden Raines about 10 years ago
engines/bastion/test/sync-plans/sync-plan-add-products.controller.test.js | ||
---|---|---|
describe('Controller: SyncPlanAddProductsController', function() {
|
||
var $scope,
|
||
$controller,
|
||
gettext,
|
||
translate,
|
||
SyncPlan,
|
||
Nutupane;
|
||
|
||
... | ... | |
|
||
SyncPlan.addProducts = function() {};
|
||
|
||
gettext = function(message) {
|
||
translate = function(message) {
|
||
return message;
|
||
};
|
||
|
||
... | ... | |
$controller('SyncPlanAddProductsController', {
|
||
$scope: $scope,
|
||
$q: $q,
|
||
gettext: gettext,
|
||
translate: translate,
|
||
SyncPlan: SyncPlan,
|
||
Nutupane: Nutupane
|
||
});
|
Also available in: Unified diff
Fixes #4785, replace gettext with translate for extraction/replacement.