Skip to content

Commit 3aaff39

Browse files
committed
fixup: better assertion
1 parent f656676 commit 3aaff39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/bin/windows-shims.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ t.test('shim contents', t => {
4444

4545
t.test('bash', t => {
4646
const { diff, letters } = diffFiles(SHIMS.npm, SHIMS.npx)
47-
t.equal(diff.length, 0)
47+
t.strictSame(diff, [])
4848
t.strictSame([...letters], ['M', 'X'], 'all other changes are m->x')
4949
t.end()
5050
})
5151

5252
t.test('cmd', t => {
5353
const { diff, letters } = diffFiles(SHIMS['npm.cmd'], SHIMS['npx.cmd'])
54-
t.equal(diff.length, 0)
54+
t.strictSame(diff, [])
5555
t.strictSame([...letters], ['M', 'X'], 'all other changes are m->x')
5656
t.end()
5757
})
5858

5959
t.test('pwsh', t => {
6060
const { diff, letters } = diffFiles(SHIMS['npm.ps1'], SHIMS['npx.ps1'])
61-
t.equal(diff.length, 0)
61+
t.strictSame(diff, [])
6262
t.strictSame([...letters], ['M', 'X'], 'all other changes are m->x')
6363
t.end()
6464
})

0 commit comments

Comments
 (0)