From d75de7031c3430fbcb76fa7b90cf681ba5042df9 Mon Sep 17 00:00:00 2001 From: Grzegorz Rozdzialik Date: Wed, 20 Jan 2021 10:49:11 +0100 Subject: [PATCH] chore: fix Buffer deprecation warning in test (#706) --- __tests__/manual.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() })