fixed mock URL that was causing request to fail

This commit is contained in:
Phil Hughes 2018-04-10 17:34:17 +01:00
parent 2ec6a7e101
commit d245b7233e
No known key found for this signature in database
GPG key ID: 32245528C52E0F9F

View file

@ -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: '<p>testing 123</p>',
});