Skip to content

Commit d82eeed

Browse files
committed
update buffer methods in test files
1 parent 2fd8c38 commit d82eeed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/connection.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var DEF_OPTS1 = {
1212
debug: false,
1313
board: {
1414
baud: 115200,
15-
signature: new Buffer([0x1e, 0x95, 0x0f]),
15+
signature: Buffer.from([0x1e, 0x95, 0x0f]),
1616
pageSize: 128,
1717
numPages: 256,
1818
timeout: 400,
@@ -162,7 +162,7 @@ test('[ Connection ] ::_pollForPort', function(t) {
162162
debug: false,
163163
board: {
164164
baud: 115200,
165-
signature: new Buffer([0x1e, 0x95, 0x0f]),
165+
signature: Buffer.from([0x1e, 0x95, 0x0f]),
166166
pageSize: 128,
167167
numPages: 256,
168168
timeout: 400,

tests/protocol.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var DEF_OPTS3 = {
77
protocol: STK,
88
board: {
99
baud: 115200,
10-
signature: new Buffer([0x1e, 0x95, 0x0f]),
10+
signature: Buffer.from([0x1e, 0x95, 0x0f]),
1111
pageSize: 128,
1212
numPages: 256,
1313
timeout: 400,

0 commit comments

Comments
 (0)