diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-27 01:02:02 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-02-08 21:43:17 +0100 |
commit | da610a51f49807d1409f36b98e06e89447a4202b (patch) | |
tree | a4f7911f45ca52626ef02f370c3f260d33f8272e /packages/main/src/stores/__tests__ | |
parent | refactor: Coding conventions (diff) | |
download | sophie-da610a51f49807d1409f36b98e06e89447a4202b.tar.gz sophie-da610a51f49807d1409f36b98e06e89447a4202b.tar.zst sophie-da610a51f49807d1409f36b98e06e89447a4202b.zip |
refactor: Extract config handling
Move the handling of the contents of the config file out of the stores
and into dedicated files to simplify the code of the stores.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/main/src/stores/__tests__')
-rw-r--r-- | packages/main/src/stores/__tests__/SharedStore.spec.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/main/src/stores/__tests__/SharedStore.spec.ts b/packages/main/src/stores/__tests__/SharedStore.spec.ts index dfd59a1..268ce3f 100644 --- a/packages/main/src/stores/__tests__/SharedStore.spec.ts +++ b/packages/main/src/stores/__tests__/SharedStore.spec.ts | |||
@@ -18,9 +18,10 @@ | |||
18 | * SPDX-License-Identifier: AGPL-3.0-only | 18 | * SPDX-License-Identifier: AGPL-3.0-only |
19 | */ | 19 | */ |
20 | 20 | ||
21 | import type { ProfileConfig } from '../Profile'; | 21 | import SharedStore from '../SharedStore'; |
22 | import type { ServiceConfig } from '../Service'; | 22 | import type Config from '../config/Config'; |
23 | import SharedStore, { Config } from '../SharedStore'; | 23 | import type ProfileConfig from '../config/ProfileConfig'; |
24 | import type ServiceConfig from '../config/ServiceConfig'; | ||
24 | 25 | ||
25 | const profileProps: ProfileConfig = { | 26 | const profileProps: ProfileConfig = { |
26 | name: 'Test profile', | 27 | name: 'Test profile', |