Skip to content

Commit a6115ac

Browse files
harrysarsonboneskull
authored andcommitted
replace deprecated New Buffer() with Buffer.from()
Reference: https://nodejs.org/api/deprecations.html#deprecations_dep0005_buffer_constructor
1 parent 471ab31 commit a6115ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/fixtures/diffs/diffs.fixture.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ describe('diffs', function () {
106106
});
107107

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

0 commit comments

Comments
 (0)