Skip to content

Commit 4a9e331

Browse files
gishmelMylesBorins
authored andcommittedOct 11, 2017
test: alter assert.strictEqual to default message
PR-URL: #15978 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent e9d31bc commit 4a9e331

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed
 

‎test/parallel/test-zlib-from-string.js

+4-8
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ const expectedBase64Gzip = 'H4sIAAAAAAAAA11RS05DMQy8yhzg6d2BPSAkJPZu4laWkjiN4' +
5555
'sHnHNzRtagj5AQAA';
5656

5757
zlib.deflate(inputString, common.mustCall((err, buffer) => {
58-
assert.strictEqual(buffer.toString('base64'), expectedBase64Deflate,
59-
'deflate encoded string should match');
58+
assert.strictEqual(buffer.toString('base64'), expectedBase64Deflate);
6059
}));
6160

6261
zlib.gzip(inputString, common.mustCall((err, buffer) => {
@@ -67,19 +66,16 @@ zlib.gzip(inputString, common.mustCall((err, buffer) => {
6766
// result that we're expecting, and this should match what we get
6867
// from inflating the known valid deflate data.
6968
zlib.gunzip(buffer, common.mustCall((err, gunzipped) => {
70-
assert.strictEqual(gunzipped.toString(), inputString,
71-
'Should get original string after gzip/gunzip');
69+
assert.strictEqual(gunzipped.toString(), inputString);
7270
}));
7371
}));
7472

7573
let buffer = Buffer.from(expectedBase64Deflate, 'base64');
7674
zlib.unzip(buffer, common.mustCall((err, buffer) => {
77-
assert.strictEqual(buffer.toString(), inputString,
78-
'decoded inflated string should match');
75+
assert.strictEqual(buffer.toString(), inputString);
7976
}));
8077

8178
buffer = Buffer.from(expectedBase64Gzip, 'base64');
8279
zlib.unzip(buffer, common.mustCall((err, buffer) => {
83-
assert.strictEqual(buffer.toString(), inputString,
84-
'decoded gunzipped string should match');
80+
assert.strictEqual(buffer.toString(), inputString);
8581
}));

0 commit comments

Comments
 (0)
Please sign in to comment.