| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6b8830c commit 9ddbcc8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,12 +33,12 @@ const b = Buffer.from(ucs2_control + ucs2_control, 'ucs2'); | |||
| 33 | 33 | .update(datum1.toString('base64'), 'base64') | |
| 34 | 34 | .digest('hex'); | |
| 35 | 35 | const hash1_direct = crypto.createHash('sha1').update(datum1).digest('hex'); | |
| 36 | - assert.strictEqual(hash1_direct, hash1_converted, 'should hash the same.'); | ||
| 36 | + assert.strictEqual(hash1_direct, hash1_converted); | ||
| 37 | 37 | ||
| 38 | 38 | const datum2 = b; | |
| 39 | 39 | const hash2_converted = crypto.createHash('sha1') | |
| 40 | 40 | .update(datum2.toString('base64'), 'base64') | |
| 41 | 41 | .digest('hex'); | |
| 42 | 42 | const hash2_direct = crypto.createHash('sha1').update(datum2).digest('hex'); | |
| 43 | - assert.strictEqual(hash2_direct, hash2_converted, 'should hash the same.'); | ||
| 43 | + assert.strictEqual(hash2_direct, hash2_converted); | ||
| 44 | 44 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments