We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.fill
undefined
1 parent 84bdfe9 commit 0fdfd67Copy full SHA for 0fdfd67
test/index.js
@@ -109,7 +109,8 @@ test('HashBase#update', function (t) {
109
110
t.test('decode string with custom encoding', function (t) {
111
t.plan(1)
112
- var buffer = Buffer.allocUnsafe(64).fill(0x42)
+ var buffer = Buffer.allocUnsafe(64)
113
+ buffer.fill(0x42)
114
t.base._update = function () { t.same(this._block, buffer) }
115
t.base.update(buffer.toString('hex'), 'hex')
116
t.end()
0 commit comments