Skip to content

Commit 80e932d

Browse files
committed
prefer const in unit tests
1 parent 402d7a1 commit 80e932d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/packets/test-time.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ const packets = require('../../../lib/packets/index.js');
1313
['-121:23:45', '0b000004000008010500000001172d'], // CONVERT('-121:23:45', TIME)
1414
['-01:23:44.88', '0f00000400000c010000000001172c806d0d00'] //DATE_ADD(CONVERT('-01:23:45', TIME), INTERVAL 0.12 SECOND)
1515
].forEach(([expected, buffer]) => {
16-
let buf = Buffer.from(buffer, 'hex');
17-
let packet = new packets.Packet(4, buf, 0, buf.length);
16+
const buf = Buffer.from(buffer, 'hex');
17+
const packet = new packets.Packet(4, buf, 0, buf.length);
1818
packet.readInt16(); // unused
19-
let d = packet.readTimeString(false);
19+
const d = packet.readTimeString(false);
2020
assert.equal(d, expected);
2121
});

0 commit comments

Comments
 (0)