Skip to content

Commit a95aaf0

Browse files
LinusUahmadnassri
authored andcommitted
Prefer const over let (#59)
1 parent ee99d30 commit a95aaf0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ const tap = require('tap')
44
tap.test('simple', assert => {
55
assert.plan(2)
66

7-
let original = {
7+
const original = {
88
number: 10,
99
string: 'foo',
1010
boolean: true
1111
}
1212

13-
let cloned = clone(original)
13+
const cloned = clone(original)
1414

1515
assert.notEqual(cloned, original)
1616
assert.same(cloned, original)
@@ -19,9 +19,9 @@ tap.test('simple', assert => {
1919
tap.test('complex', assert => {
2020
assert.plan(2)
2121

22-
let date = new Date()
22+
const date = new Date()
2323

24-
let original = {
24+
const original = {
2525
objects: {
2626
array: [ null, undefined, date, /deepcopy/ig ],
2727
to: null,
@@ -33,7 +33,7 @@ tap.test('complex', assert => {
3333
}
3434
}
3535

36-
let expected = {
36+
const expected = {
3737
objects: {
3838
array: [ null, null, date.toISOString(), {} ],
3939
to: null,
@@ -45,7 +45,7 @@ tap.test('complex', assert => {
4545
}
4646
}
4747

48-
let cloned = clone(original)
48+
const cloned = clone(original)
4949

5050
assert.notEqual(cloned, original)
5151
assert.same(cloned, expected)

0 commit comments

Comments
 (0)