From 6f9e51191d8a05c674e694c638020d7b0289b6e6 Mon Sep 17 00:00:00 2001 From: Tom French Date: Fri, 20 May 2022 23:31:56 +0100 Subject: [PATCH] style: replace var with const --- packages/loot-core/src/server/timestamp.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/loot-core/src/server/timestamp.test.js b/packages/loot-core/src/server/timestamp.test.js index 4c72847..c9e854c 100644 --- a/packages/loot-core/src/server/timestamp.test.js +++ b/packages/loot-core/src/server/timestamp.test.js @@ -46,13 +46,13 @@ describe('Timestamp', function() { }); it('should parse', function() { - var validInputs = [ + const validInputs = [ '1970-01-01T00:00:00.000Z-0000-0000000000000000', '2015-04-24T22:23:42.123Z-1000-0123456789ABCDEF', '9999-12-31T23:59:59.999Z-FFFF-FFFFFFFFFFFFFFFF' ]; for (const validInput of validInputs) { - var parsed = Timestamp.parse(validInput); + const parsed = Timestamp.parse(validInput); expect(typeof parsed).toBe('object'); expect(parsed.millis() >= 0).toBeTruthy(); expect(parsed.millis() < 253402300800000).toBeTruthy();