| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c3c5141 commit 649288b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,16 +6,16 @@ if (!common.hasCrypto) | |||
| 6 | 6 | const assert = require('assert'); | |
| 7 | 7 | const crypto = require('crypto'); | |
| 8 | 8 | ||
| 9 | + // 'should consider equal strings to be equal' | ||
| 9 | 10 | assert.strictEqual( | |
| 10 | 11 | crypto.timingSafeEqual(Buffer.from('foo'), Buffer.from('foo')), | |
| 11 | - true, | ||
| 12 | - 'should consider equal strings to be equal' | ||
| 12 | + true | ||
| 13 | 13 | ); | |
| 14 | 14 | ||
| 15 | + // 'should consider unequal strings to be unequal' | ||
| 15 | 16 | assert.strictEqual( | |
| 16 | 17 | crypto.timingSafeEqual(Buffer.from('foo'), Buffer.from('bar')), | |
| 17 | - false, | ||
| 18 | - 'should consider unequal strings to be unequal' | ||
| 18 | + false | ||
| 19 | 19 | ); | |
| 20 | 20 | ||
| 21 | 21 | common.expectsError( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments