Skip to content

Commit

Permalink
fix: Remove a new Buffer() call (#1603)
Browse files Browse the repository at this point in the history
  • Loading branch information
reconbot committed Jul 21, 2018
1 parent 4160aca commit e21fe7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/serialport.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('SerialPort', () => {
beforeEach(() => {
SerialPort.Binding = mockBinding;
sandbox = sinon.createSandbox();
mockBinding.createPort('/dev/exists', { echo: true, readyData: new Buffer(0) });
mockBinding.createPort('/dev/exists', { echo: true, readyData: Buffer.from([]) });
});

afterEach(() => {
Expand Down

0 comments on commit e21fe7a

Please sign in to comment.