We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 982752b commit d866968Copy full SHA for d866968
tests/wasm/classes.js
@@ -200,7 +200,7 @@ exports.js_test_inspectable_classes = () => {
200
assert.deepStrictEqual(inspectable.toJSON(), { a: inspectable.a });
201
assert.strictEqual(inspectable.toString(), `{"a":${inspectable.a}}`);
202
// Inspectable classes in Node.js have improved console.log formatting as well
203
- assert.strictEqual(console_log_to_string(inspectable), `Inspectable { a: ${inspectable.a} }`);
+ assert(console_log_to_string(inspectable).endsWith(`{ a: ${inspectable.a} }`));
204
// Non-inspectable classes do not have a toJSON or toString generated
205
assert.strictEqual(not_inspectable.toJSON, undefined);
206
assert.strictEqual(not_inspectable.toString(), '[object Object]');
0 commit comments