Skip to content

Commit

Permalink
Remove deprecated Buffer usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCarlino committed Jun 21, 2019
1 parent 059b4c6 commit 3a7eb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/demo/__tests__/demo_iframe_test.tsx
Expand Up @@ -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");
});

Expand Down

0 comments on commit 3a7eb6a

Please sign in to comment.