From 5725cebec015b90a33c17a8f684bd345dc239934 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 24 Apr 2022 20:11:21 +0200 Subject: chore(deps): remove ms to reduce dependency count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can trivially do what it does, and removing it reduces the amount of external dependencies running in the security-sensitive context of the main process. Signed-off-by: Kristóf Marussy --- packages/main/src/reactions/__tests__/synchronizeConfig.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'packages/main/src/reactions/__tests__') 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 @@ import { jest } from '@jest/globals'; import { mocked } from 'jest-mock'; -import ms from 'ms'; import type ConfigRepository from '../../infrastructure/config/ConfigRepository'; import SharedStore from '../../stores/SharedStore'; @@ -34,8 +33,8 @@ const repository: ConfigRepository = { writeConfig: jest.fn(), watchConfig: jest.fn(), }; -const lessThanThrottleMs = ms('0.1s'); -const throttleMs = ms('1s'); +const lessThanThrottleMs = 100; +const throttleMs = 1000; beforeAll(() => { jest.useFakeTimers(); -- cgit v1.2.3-70-g09d2