Commit e4bae911 authored by Phil Hughes's avatar Phil Hughes

fix missed gl.utils.visitUrl spy

parent 00fa900f
...@@ -327,13 +327,13 @@ describe('Multi-file store actions', () => { ...@@ -327,13 +327,13 @@ describe('Multi-file store actions', () => {
}); });
it('redirects to new merge request page', (done) => { it('redirects to new merge request page', (done) => {
spyOn(gl.utils, 'visitUrl'); spyOn(urlUtils, 'visitUrl');
store.state.endpoints.newMergeRequestUrl = 'newMergeRequestUrl?branch='; store.state.endpoints.newMergeRequestUrl = 'newMergeRequestUrl?branch=';
store.dispatch('commitChanges', { payload, newMr: true }) store.dispatch('commitChanges', { payload, newMr: true })
.then(() => { .then(() => {
expect(gl.utils.visitUrl).toHaveBeenCalledWith('newMergeRequestUrl?branch=master'); expect(urlUtils.visitUrl).toHaveBeenCalledWith('newMergeRequestUrl?branch=master');
done(); done();
}).catch(done.fail); }).catch(done.fail);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment