fixed axios mock not being restored

This commit is contained in:
Phil Hughes 2018-02-01 11:59:59 +00:00
parent 4377b4795f
commit b1c8b3aadb
No known key found for this signature in database
GPG Key ID: 32245528C52E0F9F
1 changed files with 4 additions and 0 deletions

View File

@ -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');