Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
test: re-enable assert_throws_stack tests for node-chakracore (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-kaufman authored Mar 28, 2018
1 parent adee1d5 commit 857281b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 10 additions & 4 deletions test/message/assert_throws_stack.chakracore.out
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
assert.js:*
compareExceptionKey(actual, expected, key, msg);
compareExceptionKey(actual, expected, key, msg, keys);
^

AssertionError [ERR_ASSERTION]: bar: expected true, not undefined
at Anonymous function (*assert_throws_stack.js:*:*)
AssertionError [ERR_ASSERTION]: Input A expected to deepStrictEqual input B:
+ expected - actual

- Comparison {}
+ Comparison {
+ bar: true
+ }
at Anonymous function (*assert_throws_stack.js:*)
at *
at *
at *
at *
4 changes: 0 additions & 4 deletions test/message/assert_throws_stack.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@
require('../common');
const assert = require('assert').strict;

// Temporarily disabled on chakra.
const common = require('../common');
if (!common.isChakraEngine) {
assert.throws(() => { throw new Error('foo'); }, { bar: true });
}

0 comments on commit 857281b

Please sign in to comment.