Add fields store (#144)

* Add fields store

* Add test coverage for fields store

* Remove hydration tests

It doesn't do anything itself, but just calls init / reset methods of stores

* Rename store methods to hydrate / dehydrate

* DRY that sucker

* Move hydration logic into a store

* Fix tests for new store

* Rename hydrate store to app store, fix tests in auth

* Fix tests of router

* Fix tests in module-bar-logo

* bunch of things

* Fix tests in hydrate

* Fix router tests

* Clean up auth tests

* Update tests for collections / fields stores

* Use stores instead of mocks in tests

* Add test for store getter in collections
This commit is contained in:
Rijk van Zanten
2020-03-11 10:36:39 -04:00
committed by GitHub
parent 74c99a55b6
commit a2ba2c8783
18 changed files with 709 additions and 131 deletions

View File

@@ -8,10 +8,6 @@ describe('Stores / Projects', () => {
Vue.use(VueCompositionAPI);
});
afterEach(() => {
jest.clearAllMocks();
});
describe('Getters / currentProject', () => {
const dummyProject = {
key: 'my-project',