DocumentsStore WIP

This commit is contained in:
Tom Moor
2017-06-27 20:59:53 -07:00
parent f8a715dcef
commit 72fd39b494
8 changed files with 125 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ describe('CollectionsStore', () => {
})),
};
await store.fetch();
await store.fetchAll();
expect(store.client.post).toHaveBeenCalledWith('/collections.list', {
id: 123,
@@ -44,7 +44,7 @@ describe('CollectionsStore', () => {
add: jest.fn(),
};
await store.fetch();
await store.fetchAll();
expect(store.errors.add).toHaveBeenCalledWith(
'Failed to load collections'