misc, fix client tests

This commit is contained in:
Matteo Pagliazzi
2019-10-15 15:32:53 +02:00
parent ed7a54dfd6
commit 0bac3c0b5f
65 changed files with 136 additions and 78 deletions

View File

@@ -12,6 +12,10 @@ describe('async resource', () => {
});
describe('loadAsyncResource', () => {
afterEach(() => {
if (axios.get && axios.get.restore) axios.get.restore();
});
context('errors', () => {
it('store is missing', () => {
expect(() => loadAsyncResource({})).to.throw;