Revision 6daa73a6
Added by Walden Raines about 10 years ago
engines/bastion/test/systems/content/system-errata.controller.test.js | ||
---|---|---|
**/
|
||
|
||
describe('Controller: SystemErrataController', function() {
|
||
var $scope, Nutupane, SystemTask, SystemErratum,
|
||
var $scope, Nutupane, SystemErratum,
|
||
mockSystem, mockTask, mockErratum;
|
||
|
||
beforeEach(module('Bastion.systems', 'Bastion.test-mocks'));
|
||
... | ... | |
};
|
||
this.get = function() {};
|
||
};
|
||
SystemTask = {
|
||
get: function() {},
|
||
poll: function(task, returnFunction) {}
|
||
};
|
||
SystemErratum = {
|
||
get: function() {return []},
|
||
apply: function(errata, success) {
|
||
... | ... | |
|
||
$controller('SystemErrataController', {$scope: $scope,
|
||
SystemErratum: SystemErratum,
|
||
SystemTask: SystemTask,
|
||
Nutupane: Nutupane});
|
||
}));
|
||
|
Also available in: Unified diff
Fixes #4721 - passing systemId into system tasks calls to match API.