diff options
author | Phil Hughes <me@iamphill.com> | 2018-02-01 11:59:59 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-02-01 11:59:59 +0000 |
commit | b1c8b3aadb202898a1e9342706e9e6f46bbb3612 (patch) | |
tree | 10c8be6026cbf91a797605b63a8b80be7ab055bd /spec/javascripts/notes_spec.js | |
parent | 4377b4795fedcb5145d76fab09ccd468ce3a2138 (diff) | |
download | gitlab-ce-b1c8b3aadb202898a1e9342706e9e6f46bbb3612.tar.gz |
fixed axios mock not being restored
Diffstat (limited to 'spec/javascripts/notes_spec.js')
-rw-r--r-- | spec/javascripts/notes_spec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/notes_spec.js b/spec/javascripts/notes_spec.js index 808e0f6ca31..2fb385bd79f 100644 --- a/spec/javascripts/notes_spec.js +++ b/spec/javascripts/notes_spec.js @@ -145,6 +145,10 @@ import timeoutPromise from './helpers/set_timeout_promise_helper'; mock.onPost(/(.*)\/notes$/).reply(200, noteEntity); }); + afterEach(() => { + mock.restore(); + }); + it('updates note and resets edit form', (done) => { spyOn(this.notes, 'revertNoteEditForm'); spyOn(this.notes, 'setupNewNote'); |