fixed axios mock not being restored
This commit is contained in:
parent
4377b4795f
commit
b1c8b3aadb
1 changed files with 4 additions and 0 deletions
|
@ -145,6 +145,10 @@ import timeoutPromise from './helpers/set_timeout_promise_helper';
|
||||||
mock.onPost(/(.*)\/notes$/).reply(200, noteEntity);
|
mock.onPost(/(.*)\/notes$/).reply(200, noteEntity);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
mock.restore();
|
||||||
|
});
|
||||||
|
|
||||||
it('updates note and resets edit form', (done) => {
|
it('updates note and resets edit form', (done) => {
|
||||||
spyOn(this.notes, 'revertNoteEditForm');
|
spyOn(this.notes, 'revertNoteEditForm');
|
||||||
spyOn(this.notes, 'setupNewNote');
|
spyOn(this.notes, 'setupNewNote');
|
||||||
|
|
Loading…
Reference in a new issue