Revision 6f5e909f
Added by Walden Raines about 10 years ago
engines/bastion/test/subscriptions/subscriptions.controller.test.js | ||
---|---|---|
var $scope,
|
||
Nutupane,
|
||
unlimitedFilterFilter,
|
||
gettext;
|
||
translate;
|
||
|
||
beforeEach(module('Bastion.subscriptions', 'Bastion.test-mocks', 'alchemy.format'));
|
||
|
||
... | ... | |
});
|
||
|
||
beforeEach(module(function($provide) {
|
||
$provide.value('gettext', function(a) {return a});
|
||
$provide.value('translate', function(a) {return a});
|
||
}));
|
||
|
||
beforeEach(inject(function($controller, $rootScope, $location, $injector, $filter) {
|
||
... | ... | |
Subscription = $injector.get('MockResource').$new(),
|
||
Provider = $injector.get('MockResource').$new();
|
||
|
||
gettext = function(message) {
|
||
translate = function(message) {
|
||
return message;
|
||
};
|
||
unlimitedFilterFilter = $filter('unlimitedFilter');
|
||
... | ... | |
$scope: $scope,
|
||
$q: $q,
|
||
$location: $location,
|
||
gettext: gettext,
|
||
translate: translate,
|
||
Nutupane: Nutupane,
|
||
Subscription: Subscription,
|
||
Provider: Provider,
|
Also available in: Unified diff
Fixes #4785, replace gettext with translate for extraction/replacement.