Skip to content

Commit

Permalink
Skip known-bad test on old Node.js versions
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs authored and ruyadorno committed Jan 7, 2021
1 parent bfa1f24 commit 73ec0f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -2529,7 +2529,10 @@ t.test('trying to unpack a non-zlib gzip file should fail', t => {
new Unpack(opts)
.once('error', er => t.match(er, expect, 'async emits'))
.end(dataGzip)
t.throws(() => new UnpackSync(opts).end(dataGzip), expect, 'sync throws')
const skip = !/^v([0-9]|1[0-3])\./.test(process.version) ? false
: 'node prior to v14 did not raise sync zlib errors properly'
t.throws(() => new UnpackSync(opts).end(dataGzip),
expect, 'sync throws', {skip})
})

t.test('bad archive if no gzip', t => {
Expand Down

0 comments on commit 73ec0f7

Please sign in to comment.