We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c27df2 commit bb8b11fCopy full SHA for bb8b11f
test/wasi/test-wasi-options-validation.js
@@ -11,12 +11,12 @@ new WASI({});
11
12
// If args is not an Array and not undefined, it should throw.
13
assert.throws(() => { new WASI({ args: 'fhqwhgads' }); },
14
- { code: 'ERR_INVALID_ARG_TYPE' });
+ { code: 'ERR_INVALID_ARG_TYPE', message: /\bargs\b/ });
15
16
// If env is not an Object and not undefined, it should throw.
17
assert.throws(() => { new WASI({ env: 'fhqwhgads' }); },
18
+ { code: 'ERR_INVALID_ARG_TYPE', message: /\benv\b/ });
19
20
// If preopens is not an Object and not undefined, it should throw.
21
assert.throws(() => { new WASI({ preopens: 'fhqwhgads' }); },
22
+ { code: 'ERR_INVALID_ARG_TYPE', message: /\bpreopens\b/ });
0 commit comments