Merge branch 'new-collection'

This commit is contained in:
Tom Moor
2017-07-10 00:43:00 -07:00
4 changed files with 1 additions and 8 deletions

View File

@@ -25,6 +25,7 @@ describe('Collection model', () => {
});
await collection.fetch();
expect(client.post).toHaveBeenCalledWith('/collections.info', { id: 123 });
expect(collection.name).toBe('New collection');
});

View File

@@ -9,6 +9,5 @@ const snap = children => {
expect(toJson(wrapper)).toMatchSnapshot();
};
global.fetch = require('jest-fetch-mock');
global.localStorage = localStorage;
global.snap = snap;