Skip to content

Commit

Permalink
Fix new Buffer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Sep 4, 2019
1 parent 398fbf6 commit 9009e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unixTerminal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if (process.platform !== 'win32') {
buffer += data;
});
term.on('exit', () => {
assert.equal(new Buffer(buffer, 'base64').toString().replace('\r', '').replace('\n', ''), text);
assert.equal(Buffer.alloc(8, buffer, 'base64').toString().replace('\r', '').replace('\n', ''), text);
done();
});
});
Expand Down

0 comments on commit 9009e60

Please sign in to comment.