Skip to content

Commit

Permalink
Fix test for node 14.5
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jul 14, 2020
1 parent e70c7cf commit 9b3570a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/wasm/classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ exports.js_test_inspectable_classes = () => {
assert.deepStrictEqual(inspectable.toJSON(), { a: inspectable.a });
assert.strictEqual(inspectable.toString(), `{"a":${inspectable.a}}`);
// Inspectable classes in Node.js have improved console.log formatting as well
assert.strictEqual(console_log_to_string(inspectable), `Inspectable { a: ${inspectable.a} }`);
assert.strictEqual(console_log_to_string(inspectable), `{ a: ${inspectable.a} }`);
// Non-inspectable classes do not have a toJSON or toString generated
assert.strictEqual(not_inspectable.toJSON, undefined);
assert.strictEqual(not_inspectable.toString(), '[object Object]');
Expand Down

0 comments on commit 9b3570a

Please sign in to comment.