tests: use safe-buffers throughout
This commit is contained in:
parent
aeb0312d63
commit
f1ab151c31
20 changed files with 88 additions and 94 deletions
test
|
@ -8,7 +8,7 @@ describe('script-number', function () {
|
|||
describe('decode', function () {
|
||||
fixtures.forEach(function (f) {
|
||||
it(f.hex + ' returns ' + f.number, function () {
|
||||
var actual = scriptNumber.decode(new Buffer(f.hex, 'hex'), f.bytes)
|
||||
var actual = scriptNumber.decode(Buffer.from(f.hex, 'hex'), f.bytes)
|
||||
|
||||
assert.strictEqual(actual, f.number)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue