diff --git a/source/ports/node_port/package.json b/source/ports/node_port/package.json index 5dcb53035..b24038665 100644 --- a/source/ports/node_port/package.json +++ b/source/ports/node_port/package.json @@ -1,6 +1,6 @@ { "name": "metacall", - "version": "0.3.6", + "version": "0.3.7", "description": "Call Python, C#, Ruby... functions from NodeJS (a NodeJS Port for MetaCall)", "repository": "github:metacall/core", "bugs": "https://github.com/metacall/core/issues", diff --git a/source/ports/node_port/test/index.js b/source/ports/node_port/test/index.js index 726a89b41..8d153ac8f 100644 --- a/source/ports/node_port/test/index.js +++ b/source/ports/node_port/test/index.js @@ -44,7 +44,7 @@ describe('metacall', () => { describe('fail', () => { it('require', () => { - assert.strictEqual(require('./asd.invalid'), undefined); + assert.throws(() => { require('./asd.invalid') }, new Error('Cannot find module \'./asd.invalid\'')); }); });