tests: use safe-buffers throughout

This commit is contained in:
Daniel Cousens 2017-04-19 17:39:16 +10:00 committed by Daniel Cousens
parent aeb0312d63
commit f1ab151c31
20 changed files with 88 additions and 94 deletions

View file

@ -13,7 +13,7 @@ describe('crypto', function () {
var expected = f[algorithm]
it('returns ' + expected + ' for ' + f.hex, function () {
var data = new Buffer(f.hex, 'hex')
var data = Buffer.from(f.hex, 'hex')
var actual = fn(data).toString('hex')
assert.strictEqual(actual, expected)