Merge branch 'new-collection'
This commit is contained in:
@@ -25,6 +25,7 @@ describe('Collection model', () => {
|
||||
});
|
||||
|
||||
await collection.fetch();
|
||||
expect(client.post).toHaveBeenCalledWith('/collections.info', { id: 123 });
|
||||
expect(collection.name).toBe('New collection');
|
||||
});
|
||||
|
||||
|
||||
@@ -9,6 +9,5 @@ const snap = children => {
|
||||
expect(toJson(wrapper)).toMatchSnapshot();
|
||||
};
|
||||
|
||||
global.fetch = require('jest-fetch-mock');
|
||||
global.localStorage = localStorage;
|
||||
global.snap = snap;
|
||||
|
||||
Reference in New Issue
Block a user