mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 14:05:59 -03:30
Changed backend mock to /static regex to catch all static requests and return 200
This commit is contained in:
@@ -84,9 +84,9 @@ describe('Controller: WorkflowAdd', () => {
|
||||
.whenGET('/api')
|
||||
.respond(200, '');
|
||||
|
||||
httpBackend
|
||||
.whenGET('/static/languages/en_US.json')
|
||||
.respond(200, '');
|
||||
$httpBackend
|
||||
.whenGET(/\/static\/*/)
|
||||
.respond(200, {});
|
||||
|
||||
TemplatesService.getLabelOptions = jasmine.createSpy('getLabelOptions').and.returnValue(getLabelsDeferred.promise);
|
||||
TemplatesService.createWorkflowJobTemplate = jasmine.createSpy('createWorkflowJobTemplate').and.returnValue(createWorkflowJobTemplateDeferred.promise);
|
||||
|
||||
Reference in New Issue
Block a user