| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e9d31bc commit 4a9e331
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,8 +55,7 @@ const expectedBase64Gzip = 'H4sIAAAAAAAAA11RS05DMQy8yhzg6d2BPSAkJPZu4laWkjiN4' + | |||
| 55 | 55 | 'sHnHNzRtagj5AQAA'; | |
| 56 | 56 | ||
| 57 | 57 | 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); | ||
| 60 | 59 | })); | |
| 61 | 60 | ||
| 62 | 61 | zlib.gzip(inputString, common.mustCall((err, buffer) => { | |
@@ -67,19 +66,16 @@ zlib.gzip(inputString, common.mustCall((err, buffer) => { | |||
| 67 | 66 | // result that we're expecting, and this should match what we get | |
| 68 | 67 | // from inflating the known valid deflate data. | |
| 69 | 68 | 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); | ||
| 72 | 70 | })); | |
| 73 | 71 | })); | |
| 74 | 72 | ||
| 75 | 73 | let buffer = Buffer.from(expectedBase64Deflate, 'base64'); | |
| 76 | 74 | 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); | ||
| 79 | 76 | })); | |
| 80 | 77 | ||
| 81 | 78 | buffer = Buffer.from(expectedBase64Gzip, 'base64'); | |
| 82 | 79 | 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); | ||
| 85 | 81 | })); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments