The test
|
it(`[${name}] ` + "should run throwing query", async () => { |
|
const swipl = await SWIPL({ arguments: ["-q"], ...addedParams }); |
|
const response = swipl.prolog.query("throw(error(test, _))").once(); |
|
assert.strictEqual(response.error, true); |
|
}); |
logs to the console even when a
print: () => {} and
printErr: () => {} options are added.
The test
npm-swipl-wasm/tests/node.js
Lines 50 to 54 in 24e9428
print: () => {}andprintErr: () => {}options are added.