From 08594682a43b035db4f5a459a67001e368843ab6 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Tue, 10 Sep 2019 18:18:06 -0400 Subject: [PATCH] stub options request in workflow add unit test --- awx/ui/test/spec/workflows/workflow-add.controller-test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awx/ui/test/spec/workflows/workflow-add.controller-test.js b/awx/ui/test/spec/workflows/workflow-add.controller-test.js index ce00ada1d0..4edf61f694 100644 --- a/awx/ui/test/spec/workflows/workflow-add.controller-test.js +++ b/awx/ui/test/spec/workflows/workflow-add.controller-test.js @@ -97,6 +97,10 @@ describe('Controller: WorkflowAdd', () => { .whenGET(/^\/api\/?$/) .respond(200, ''); + $httpBackend + .when('OPTIONS', '/') + .respond(200, ''); + $httpBackend .whenGET(/\/static\/*/) .respond(200, {});