Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 36747ee

Browse filesBrowse files
gishmelMylesBorins
authored andcommitted
test: alter assert.strictEqual to default message
PR-URL: #15978 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 291b9c5 commit 36747ee
Copy full SHA for 36747ee

File tree

Expand file treeCollapse file tree

1 file changed

+4
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-8
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-zlib-from-string.js
+4-8Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ const expectedBase64Gzip = 'H4sIAAAAAAAAA11RS05DMQy8yhzg6d2BPSAkJPZu4laWkjiN4' +
3434
'sHnHNzRtagj5AQAA';
3535

3636
zlib.deflate(inputString, common.mustCall((err, buffer) => {
37-
assert.strictEqual(buffer.toString('base64'), expectedBase64Deflate,
38-
'deflate encoded string should match');
37+
assert.strictEqual(buffer.toString('base64'), expectedBase64Deflate);
3938
}));
4039

4140
zlib.gzip(inputString, common.mustCall((err, buffer) => {
@@ -46,19 +45,16 @@ zlib.gzip(inputString, common.mustCall((err, buffer) => {
4645
// result that we're expecting, and this should match what we get
4746
// from inflating the known valid deflate data.
4847
zlib.gunzip(buffer, common.mustCall((err, gunzipped) => {
49-
assert.strictEqual(gunzipped.toString(), inputString,
50-
'Should get original string after gzip/gunzip');
48+
assert.strictEqual(gunzipped.toString(), inputString);
5149
}));
5250
}));
5351

5452
let buffer = Buffer.from(expectedBase64Deflate, 'base64');
5553
zlib.unzip(buffer, common.mustCall((err, buffer) => {
56-
assert.strictEqual(buffer.toString(), inputString,
57-
'decoded inflated string should match');
54+
assert.strictEqual(buffer.toString(), inputString);
5855
}));
5956

6057
buffer = Buffer.from(expectedBase64Gzip, 'base64');
6158
zlib.unzip(buffer, common.mustCall((err, buffer) => {
62-
assert.strictEqual(buffer.toString(), inputString,
63-
'decoded gunzipped string should match');
59+
assert.strictEqual(buffer.toString(), inputString);
6460
}));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.