Skip to content

Commit fee0e72

Browse files
author
hwaisiu
committed
test: use default message for assert.strictEqual()
test: because of length limit of message
1 parent a24ecaf commit fee0e72

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

test/parallel/test-zlib-from-concatenated-gzip.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ assert.strictEqual(zlib.gunzipSync(data).toString(), (abc + def));
2222

2323
zlib.gunzip(data, common.mustCall((err, result) => {
2424
assert.ifError(err);
25-
assert.strictEqual(result.toString(), (abc + def),
26-
`result "${result.toString()}" should match original string: "${(abc + def)}"`);
25+
assert.strictEqual(result.toString(), (abc + def));
2726
}));
2827

2928
zlib.unzip(data, common.mustCall((err, result) => {
3029
assert.ifError(err);
31-
assert.strictEqual(result.toString(), (abc + def),
32-
`result "${result.toString()}" should match original string: "${(abc + def)}"`);
30+
assert.strictEqual(result.toString(), (abc + def));
3331
}));
3432

3533
// Multi-member support does not apply to zlib inflate/deflate.
@@ -39,7 +37,7 @@ zlib.unzip(Buffer.concat([
3937
]), common.mustCall((err, result) => {
4038
assert.ifError(err);
4139
assert.strictEqual(result.toString(), abc,
42-
`result "${result.toString()}" should match contents of first "member": "${abc}"`);
40+
`First "member": ${result.toString()} === ${abc}`);
4341
}));
4442

4543
// files that have the "right" magic bytes for starting a new gzip member

0 commit comments

Comments
 (0)