Skip to content

Commit 4c510bb

Browse files
authored
Merge pull request #5 from buffcode/node-versions
Fixed tests to work on Node > 8
2 parents 8d6b9e3 + d860205 commit 4c510bb

File tree

7 files changed

+16
-8
lines changed

7 files changed

+16
-8
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
language: node_js
2+
23
node_js:
34
- "0.10"
45
- "0.12"
56
- "4"
67
- "6"
78
- "7"
89
- "8"
10+
- "9"
11+
- "10"
12+
- "11"
13+
- "lts/*"
14+
- "node"
15+
16+
cache: npm

test/integration/read-coils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("Read Coils", function () {
1919
function () {
2020
Help.modbus.ReadCoils.Response.build(bits)
2121
},
22-
/out of bounds/
22+
/(out of bounds|RangeError)/
2323
);
2424
} else {
2525
assert.deepEqual(

test/integration/read-discrete-inputs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("Read Discrete Inputs", function () {
1919
function () {
2020
Help.modbus.ReadDiscreteInputs.Response.build(bits)
2121
},
22-
/out of bounds/
22+
/(out of bounds|RangeError)/
2323
);
2424
} else {
2525
assert.deepEqual(

test/integration/read-file-record.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe("Read File Record", function () {
2525
function () {
2626
Help.modbus.ReadFileRecord.Request.build(req);
2727
},
28-
/out of bounds/
28+
/(out of bounds|RangeError)/
2929
);
3030
} else {
3131
assert.deepEqual(
@@ -41,7 +41,7 @@ describe("Read File Record", function () {
4141
function () {
4242
Help.modbus.ReadFileRecord.Response.build(res);
4343
},
44-
/out of bounds/
44+
/(out of bounds|RangeError)/
4545
);
4646
} else {
4747
assert.deepEqual(

test/integration/read-holding-registers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("Read Holding Registers", function () {
1919
function () {
2020
Help.modbus.ReadHoldingRegisters.Response.build(blocks)
2121
},
22-
/out of bounds/
22+
/(out of bounds|RangeError)/
2323
);
2424
} else {
2525
assert.deepEqual(

test/integration/read-input-registers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe("Read Input Registers", function () {
1919
function () {
2020
Help.modbus.ReadInputRegisters.Response.build(blocks)
2121
},
22-
/out of bounds/
22+
/(out of bounds|RangeError)/
2323
);
2424
} else {
2525
assert.deepEqual(

test/integration/write-file-record.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe("Write File Record", function () {
2929
function () {
3030
Help.modbus.WriteFileRecord.Request.build(req);
3131
},
32-
/out of bounds/
32+
/(out of bounds|RangeError)/
3333
);
3434
} else {
3535
assert.deepEqual(
@@ -45,7 +45,7 @@ describe("Write File Record", function () {
4545
function () {
4646
Help.modbus.WriteFileRecord.Request.build(req);
4747
},
48-
/out of bounds/
48+
/(out of bounds|RangeError)/
4949
);
5050
} else {
5151
assert.deepEqual(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy