Skip to content

Commit

Permalink
fix(test): make unpack test pass on case-sensitive fs
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 19, 2021
1 parent 188badd commit e5a223c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/unpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -3043,9 +3043,7 @@ t.test('dirCache pruning unicode normalized collisions', {

const check = (path, dirCache, t) => {
path = path.replace(/\\/g, '/')
t.strictSame([...dirCache.entries()], [
[`${path}/foo`, true],
])
t.strictSame([...dirCache.entries()][0], [`${path}/foo`, true])
t.equal(fs.readFileSync(path + '/foo/bar', 'utf8'), 'x')
t.end()
}
Expand Down

0 comments on commit e5a223c

Please # to comment.