Skip to content

Commit

Permalink
Whoops, two of those had to be Buffer.alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jan 13, 2019
1 parent 2a2c779 commit af0fa19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/assertions/to-equal.spec.js
Expand Up @@ -403,8 +403,8 @@ describe('to equal assertion', () => {
it('suppresses Buffer diff for large buffers', () => {
expect(
function() {
const a = Buffer.from(1024);
const b = Buffer.from(1024);
const a = Buffer.alloc(1024);
const b = Buffer.alloc(1024);
a[0] = 1;
b[0] = 2;
expect(a, 'to equal', b);
Expand Down

0 comments on commit af0fa19

Please sign in to comment.