diff options
Diffstat (limited to 'packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts')
-rw-r--r-- | packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts b/packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts index c145bf3..b5013ea 100644 --- a/packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts +++ b/packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts | |||
@@ -20,7 +20,6 @@ | |||
20 | 20 | ||
21 | import { jest } from '@jest/globals'; | 21 | import { jest } from '@jest/globals'; |
22 | import { mocked } from 'jest-mock'; | 22 | import { mocked } from 'jest-mock'; |
23 | import ms from 'ms'; | ||
24 | 23 | ||
25 | import type ConfigRepository from '../../infrastructure/config/ConfigRepository'; | 24 | import type ConfigRepository from '../../infrastructure/config/ConfigRepository'; |
26 | import SharedStore from '../../stores/SharedStore'; | 25 | import SharedStore from '../../stores/SharedStore'; |
@@ -34,8 +33,8 @@ const repository: ConfigRepository = { | |||
34 | writeConfig: jest.fn(), | 33 | writeConfig: jest.fn(), |
35 | watchConfig: jest.fn(), | 34 | watchConfig: jest.fn(), |
36 | }; | 35 | }; |
37 | const lessThanThrottleMs = ms('0.1s'); | 36 | const lessThanThrottleMs = 100; |
38 | const throttleMs = ms('1s'); | 37 | const throttleMs = 1000; |
39 | 38 | ||
40 | beforeAll(() => { | 39 | beforeAll(() => { |
41 | jest.useFakeTimers(); | 40 | jest.useFakeTimers(); |