sed -i 's/ var / const /', with const->let fixes
This commit is contained in:
parent
91b8823aa8
commit
a5db0a4e44
46 changed files with 776 additions and 769 deletions
test
|
@ -9,12 +9,12 @@ describe('crypto', function () {
|
|||
['hash160', 'hash256', 'ripemd160', 'sha1', 'sha256'].forEach(function (algorithm) {
|
||||
describe(algorithm, function () {
|
||||
fixtures.forEach(function (f) {
|
||||
var fn = bcrypto[algorithm]
|
||||
var expected = f[algorithm]
|
||||
const fn = bcrypto[algorithm]
|
||||
const expected = f[algorithm]
|
||||
|
||||
it('returns ' + expected + ' for ' + f.hex, function () {
|
||||
var data = Buffer.from(f.hex, 'hex')
|
||||
var actual = fn(data).toString('hex')
|
||||
const data = Buffer.from(f.hex, 'hex')
|
||||
const actual = fn(data).toString('hex')
|
||||
|
||||
assert.strictEqual(actual, expected)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue