mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Fixed unit test failures
This commit is contained in:
parent
bee7148c61
commit
8d04be0fc8
@ -18,7 +18,7 @@ describe('Controller: workflowResults', () => {
|
||||
|
||||
beforeEach(angular.mock.module('workflowResults', ($provide) => {
|
||||
['PromptDialog', 'Prompt', 'Wait', 'Rest', '$state', 'ProcessErrors',
|
||||
'jobLabels', 'workflowNodes', 'count',
|
||||
'jobLabels', 'workflowNodes', 'count', 'WorkflowJobModel',
|
||||
].forEach((item) => {
|
||||
$provide.value(item, {});
|
||||
});
|
||||
|
||||
@ -6,9 +6,10 @@ describe('workflowResultsService', () => {
|
||||
let $interval;
|
||||
|
||||
beforeEach(angular.mock.module('workflowResults', ($provide) => {
|
||||
['PromptDialog', 'Prompt', 'Wait', 'Rest', 'ProcessErrors', '$state'].forEach(function(item) {
|
||||
$provide.value(item, {});
|
||||
});
|
||||
['PromptDialog', 'Prompt', 'Wait', 'Rest', 'ProcessErrors', '$state', 'WorkflowJobModel']
|
||||
.forEach(function(item) {
|
||||
$provide.value(item, {});
|
||||
});
|
||||
$provide.value('$stateExtender', { addState: jasmine.createSpy('addState'), });
|
||||
$provide.value('moment', moment);
|
||||
}));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user