Revision 6f5e909f
Added by Walden Raines about 10 years ago
engines/bastion/test/systems/details/system-add-subscriptions.controller.test.js | ||
---|---|---|
describe('Controller: SystemAddSubscriptionsController', function() {
|
||
var $scope,
|
||
$controller,
|
||
gettext,
|
||
translate,
|
||
System,
|
||
Subscription,
|
||
Nutupane,
|
||
... | ... | |
|
||
System.addSubscriptions = function() {};
|
||
|
||
gettext = function(message) {
|
||
translate = function(message) {
|
||
return message;
|
||
};
|
||
|
||
... | ... | |
this.query = function() {};
|
||
this.refresh = function() {};
|
||
};
|
||
gettext = function(message) {
|
||
translate = function(message) {
|
||
return message;
|
||
};
|
||
SystemSubscription = {
|
||
... | ... | |
$controller('SystemAddSubscriptionsController', {
|
||
$scope: $scope,
|
||
$location: $location,
|
||
gettext: gettext,
|
||
translate: translate,
|
||
CurrentOrganization: 'organization',
|
||
Subscription: Subscription,
|
||
System: System,
|
Also available in: Unified diff
Fixes #4785, replace gettext with translate for extraction/replacement.