From 57bcd970883ebfa54952a0893bbaaa1c29c3c0d0 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sat, 7 Oct 2023 10:14:57 +0200 Subject: infra(unicorn): prefer-date-now (#2419) Co-authored-by: ST-DDT --- test/modules/helpers.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/modules') diff --git a/test/modules/helpers.spec.ts b/test/modules/helpers.spec.ts index 7b709373..df8f00e7 100644 --- a/test/modules/helpers.spec.ts +++ b/test/modules/helpers.spec.ts @@ -1292,7 +1292,7 @@ Try adjusting maxTime or maxRetries parameters for faker.helpers.unique().`) it('should not mutate most of the input option properties', () => { const method = () => 'options-mutate-test'; - const startTime = new Date().getTime(); + const startTime = Date.now(); const maxTime = 49; const maxRetries = 49; const currentIterations = 0; -- cgit v1.2.3