Skip to content

Commit

Permalink
replace deprecated New Buffer() with Buffer.from()
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysarson authored and boneskull committed May 17, 2018
1 parent e0bc1c1 commit 4a6536d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/fixtures/diffs/diffs.fixture.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ describe('diffs', function () {
});

it('should display diff by data and not like an objects', function () {
actual = new Buffer([0x01]);
expected = new Buffer([0x02]);
actual = Buffer.from([0x01]);
expected = Buffer.from([0x02]);
expect(actual).to.eql(expected);
});
});

0 comments on commit 4a6536d

Please sign in to comment.