Remove deprecated `Buffer` usage.

pull/1240/head
Rick Carlino 2019-06-21 09:53:32 -05:00
parent 059b4c61f0
commit 3a7eb6a7ab
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ describe("<DemoIframe/>", () => {
it("handles MQTT messages", () => {
location.assign = jest.fn();
const el = shallow<DemoIframe>(<DemoIframe />);
el.instance().handleMessage("foo", new Buffer("bar"));
el.instance().handleMessage("foo", Buffer.from("bar"));
expect(location.assign).toHaveBeenCalledWith("/app/designer/plants");
});