Skip to content

Commit

Permalink
chore: fix Buffer deprecation warning in test (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gelio authored Jan 20, 2021
1 parent 8fbf93c commit d75de70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __tests__/manual.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function runTests(name, useProxies) {

it("should check arguments", () => {
expect(() => createDraft(3)).toThrowErrorMatchingSnapshot()
const buf = new Buffer([])
const buf = Buffer.from([])
expect(() => createDraft(buf)).toThrowErrorMatchingSnapshot()
expect(() => finishDraft({})).toThrowErrorMatchingSnapshot()
})
Expand Down

0 comments on commit d75de70

Please sign in to comment.