mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Fixed unit test failure
This commit is contained in:
parent
78893590d1
commit
d9c9df73d2
@ -16,7 +16,8 @@ describe('Controller: WorkflowAdd', () => {
|
||||
Wait,
|
||||
ParseTypeChange,
|
||||
ToJSON,
|
||||
availableLabels;
|
||||
availableLabels,
|
||||
resolvedModels;
|
||||
|
||||
beforeEach(angular.mock.module('awApp'));
|
||||
beforeEach(angular.mock.module('RestServices'));
|
||||
@ -48,7 +49,16 @@ describe('Controller: WorkflowAdd', () => {
|
||||
name: "foo",
|
||||
id: "1"
|
||||
}];
|
||||
|
||||
|
||||
resolvedModels = [
|
||||
{},
|
||||
{
|
||||
options: () => {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
];
|
||||
|
||||
Alert = jasmine.createSpy('Alert');
|
||||
ProcessErrors = jasmine.createSpy('ProcessErrors');
|
||||
CreateSelect2 = jasmine.createSpy('CreateSelect2');
|
||||
@ -65,6 +75,7 @@ describe('Controller: WorkflowAdd', () => {
|
||||
$provide.value('ParseTypeChange', ParseTypeChange);
|
||||
$provide.value('ToJSON', ToJSON);
|
||||
$provide.value('availableLabels', availableLabels);
|
||||
$provide.value('resolvedModels', resolvedModels);
|
||||
}));
|
||||
|
||||
beforeEach(angular.mock.inject( ($rootScope, $controller, $q, $httpBackend, _state_, _ConfigService_, _GetChoices_, _Alert_, _GenerateForm_, _ProcessErrors_, _CreateSelect2_, _Wait_, _ParseTypeChange_, _ToJSON_, _availableLabels_) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user