Skip to content

Commit d75de70

Browse files
authoredJan 20, 2021
chore: fix Buffer deprecation warning in test (#706)
1 parent 8fbf93c commit d75de70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎__tests__/manual.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function runTests(name, useProxies) {
2323

2424
it("should check arguments", () => {
2525
expect(() => createDraft(3)).toThrowErrorMatchingSnapshot()
26-
const buf = new Buffer([])
26+
const buf = Buffer.from([])
2727
expect(() => createDraft(buf)).toThrowErrorMatchingSnapshot()
2828
expect(() => finishDraft({})).toThrowErrorMatchingSnapshot()
2929
})

0 commit comments

Comments
 (0)
Please sign in to comment.