From d245b7233eee9b17755303aa722a3a2e9a0bf91d Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 10 Apr 2018 17:34:17 +0100 Subject: [PATCH] fixed mock URL that was causing request to fail --- spec/javascripts/ide/components/repo_editor_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/javascripts/ide/components/repo_editor_spec.js b/spec/javascripts/ide/components/repo_editor_spec.js index 63360442a9d..f14f531920e 100644 --- a/spec/javascripts/ide/components/repo_editor_spec.js +++ b/spec/javascripts/ide/components/repo_editor_spec.js @@ -95,7 +95,7 @@ describe('RepoEditor', () => { vm.file.content = 'testing 123'; vm.$store.state.viewer = 'diff'; - mock.onPost('/namespace/project/preview_markdown').reply(200, { + mock.onPost(/(.*)\/preview_markdown/).reply(200, { body: '

testing 123

', });