Skip to content
Snippets Groups Projects
Commit 6f9e5119 authored by Tom French's avatar Tom French Committed by James Long
Browse files

style: replace var with const

parent 966e49ad
No related branches found
No related tags found
No related merge requests found
...@@ -46,13 +46,13 @@ describe('Timestamp', function() { ...@@ -46,13 +46,13 @@ describe('Timestamp', function() {
}); });
it('should parse', function() { it('should parse', function() {
var validInputs = [ const validInputs = [
'1970-01-01T00:00:00.000Z-0000-0000000000000000', '1970-01-01T00:00:00.000Z-0000-0000000000000000',
'2015-04-24T22:23:42.123Z-1000-0123456789ABCDEF', '2015-04-24T22:23:42.123Z-1000-0123456789ABCDEF',
'9999-12-31T23:59:59.999Z-FFFF-FFFFFFFFFFFFFFFF' '9999-12-31T23:59:59.999Z-FFFF-FFFFFFFFFFFFFFFF'
]; ];
for (const validInput of validInputs) { for (const validInput of validInputs) {
var parsed = Timestamp.parse(validInput); const parsed = Timestamp.parse(validInput);
expect(typeof parsed).toBe('object'); expect(typeof parsed).toBe('object');
expect(parsed.millis() >= 0).toBeTruthy(); expect(parsed.millis() >= 0).toBeTruthy();
expect(parsed.millis() < 253402300800000).toBeTruthy(); expect(parsed.millis() < 253402300800000).toBeTruthy();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment