Skip to content

Commit 6c5d2ab

Browse files
committed
Update nodjs port fail test.
1 parent 104afeb commit 6c5d2ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/ports/node_port/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "metacall",
3-
"version": "0.3.6",
3+
"version": "0.3.7",
44
"description": "Call Python, C#, Ruby... functions from NodeJS (a NodeJS Port for MetaCall)",
55
"repository": "github:metacall/core",
66
"bugs": "https://github.com/metacall/core/issues",

source/ports/node_port/test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('metacall', () => {
4444

4545
describe('fail', () => {
4646
it('require', () => {
47-
assert.strictEqual(require('./asd.invalid'), undefined);
47+
assert.throws(() => { require('./asd.invalid') }, new Error('Cannot find module \'./asd.invalid\''));
4848
});
4949
});
5050

0 commit comments

Comments
 (0)