Skip to content

Commit f35f4ed

Browse files
Fixed some tests that were failing due to a changed error message in Node 12
1 parent 38cbf63 commit f35f4ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/specs/errors.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe("error handling", () => {
1010
args: [],
1111
assert (error, data) {
1212
expect(error).to.be.an.instanceOf(TypeError);
13-
expect(error.message).to.match(/path must be a string|The "path" argument must be one of type string, Buffer, or URL/);
13+
expect(error.message).to.match(/must be a string|must be one of type string|must be of type string/);
1414
expect(data).to.be.undefined;
1515
},
1616
streamAssert (errors, data, files, dirs, symlinks) {
@@ -26,7 +26,7 @@ describe("error handling", () => {
2626
args: [55555],
2727
assert (error, data) {
2828
expect(error).to.be.an.instanceOf(TypeError);
29-
expect(error.message).to.match(/path must be a string|The "path" argument must be one of type string, Buffer, or URL/);
29+
expect(error.message).to.match(/must be a string|must be one of type string|must be of type string/);
3030
expect(data).to.be.undefined;
3131
},
3232
streamAssert (errors, data, files, dirs, symlinks) {

0 commit comments

Comments
 (0)