Skip to content

Commit

Permalink
fixup: better assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Mar 6, 2024
1 parent f656676 commit 3aaff39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/bin/windows-shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ t.test('shim contents', t => {

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

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

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

0 comments on commit 3aaff39

Please sign in to comment.