8000 fix(tests): Remove message from error object to make test compatible … · fuse-box/fuse-box@c36ac01 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit c36ac01

Browse files
troyntnchanged
authored andcommitted
fix(tests): Remove message from error object to make test compatible with Node 9.
1 parent 1d3172c commit c36ac01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tests/dynamic_imports_test/ImportDynamicExternalFile.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ export class ImportDynamicExternalFile {
6969
process.send({ error: e});
7070
})
7171
`, (data) => {
72+
// Node 8 doesn't provide a message and Node 9 does.
73+
// Removing it from data error object.
74+
delete data.error.message;
75+
7276
should(data).deepEqual({
7377
"error": {
7478
"code": "ENOTFOUND",

0 commit comments

Comments
 (0)
0