| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 291b9c5 commit 36747ee
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -34,8 +34,7 @@ const expectedBase64Gzip = 'H4sIAAAAAAAAA11RS05DMQy8yhzg6d2BPSAkJPZu4laWkjiN4' + | |||
| 34 | 34 | 'sHnHNzRtagj5AQAA'; | |
| 35 | 35 | ||
| 36 | 36 | 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); | ||
| 39 | 38 | })); | |
| 40 | 39 | ||
| 41 | 40 | zlib.gzip(inputString, common.mustCall((err, buffer) => { | |
@@ -46,19 +45,16 @@ zlib.gzip(inputString, common.mustCall((err, buffer) => { | |||
| 46 | 45 | // result that we're expecting, and this should match what we get | |
| 47 | 46 | // from inflating the known valid deflate data. | |
| 48 | 47 | 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); | ||
| 51 | 49 | })); | |
| 52 | 50 | })); | |
| 53 | 51 | ||
| 54 | 52 | let buffer = Buffer.from(expectedBase64Deflate, 'base64'); | |
| 55 | 53 | 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); | ||
| 58 | 55 | })); | |
| 59 | 56 | ||
| 60 | 57 | buffer = Buffer.from(expectedBase64Gzip, 'base64'); | |
| 61 | 58 | 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); | ||
| 64 | 60 | })); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments