diff --git a/__tests__/manual.js b/__tests__/manual.js index 265f44c0..6211fc54 100644 --- a/__tests__/manual.js +++ b/__tests__/manual.js @@ -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() })