2020-10-04 10:26:20 +02:00
|
|
|
node:assert:*
|
2018-05-02 16:59:49 +02:00
|
|
|
throw err;
|
|
|
|
|
^
|
2018-02-06 11:08:23 +01:00
|
|
|
|
2018-09-25 11:17:30 +02:00
|
|
|
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
|
2018-07-03 02:06:57 +02:00
|
|
|
+ actual - expected
|
2018-03-20 01:49:29 +01:00
|
|
|
|
2018-07-03 02:06:57 +02:00
|
|
|
+ Comparison {}
|
|
|
|
|
- Comparison {
|
|
|
|
|
- bar: true
|
|
|
|
|
- }
|
2018-02-06 11:08:23 +01:00
|
|
|
at Object.<anonymous> (*assert_throws_stack.js:*:*)
|
|
|
|
|
at *
|
|
|
|
|
at *
|
|
|
|
|
at *
|
|
|
|
|
at *
|
|
|
|
|
at *
|
2019-04-15 20:10:17 +02:00
|
|
|
at * {
|
|
|
|
|
generatedMessage: true,
|
|
|
|
|
code: 'ERR_ASSERTION',
|
|
|
|
|
actual: Error: foo
|
|
|
|
|
at assert.throws.bar (*assert_throws_stack.js:*)
|
2020-10-04 10:26:20 +02:00
|
|
|
at getActual (node:assert:*)
|
|
|
|
|
at Function.throws (node:assert:*)
|
2019-04-15 20:10:17 +02:00
|
|
|
at Object.<anonymous> (*assert_throws_stack.js:*:*)
|
|
|
|
|
at *
|
|
|
|
|
at *
|
|
|
|
|
at *
|
|
|
|
|
at *
|
|
|
|
|
at *
|
|
|
|
|
at *,
|
2020-05-22 14:18:21 +02:00
|
|
|
expected: { bar: true },
|
2019-04-15 20:10:17 +02:00
|
|
|
operator: 'throws'
|
|
|
|
|
}
|