Skip to content

Commit

Permalink
test: use default message for assert.strictEqual()
Browse files Browse the repository at this point in the history
test: because of length limit of message
  • Loading branch information
hwaisiu committed Oct 11, 2017
1 parent a24ecaf commit fee0e72
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/parallel/test-zlib-from-concatenated-gzip.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ assert.strictEqual(zlib.gunzipSync(data).toString(), (abc + def));

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

zlib.unzip(data, common.mustCall((err, result) => {
assert.ifError(err);
assert.strictEqual(result.toString(), (abc + def),
`result "${result.toString()}" should match original string: "${(abc + def)}"`);
assert.strictEqual(result.toString(), (abc + def));
}));

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

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

0 comments on commit fee0e72

Please sign in to comment.