You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use assert.strictEqual in a test case and pass in an object with a circular reference, then the test case is not logged by the reporters (console, html) as a failing test case. It is listed as failing in the overview, though (1/1 tests failed).
This test case demonstrates the problem:
const { registerSuite } = intern.getInterface('object');
const { assert } = intern.getPlugin('chai');
define(['module'], function(module) {
registerSuite(module.id, {
tests: {
'Test does not appear in reporter'() {
const a = { b: null };
const b = { a: a };
a.b = b;
assert.strictEqual(a, null);
}
}
});
});
Environment
Intern version: 4.8.3
Chrome: v83
The text was updated successfully, but these errors were encountered:
When I use
assert.strictEqual
in a test case and pass in an object with a circular reference, then the test case is not logged by the reporters (console, html) as a failing test case. It is listed as failing in the overview, though (1/1 tests failed).This test case demonstrates the problem:
Environment
Intern version: 4.8.3
Chrome: v83
The text was updated successfully, but these errors were encountered: