mirror of
https://github.com/chaijs/chai
synced 2024-11-15 00:07:11 +00:00
Disable "Assertion.includeStack is false" test in IE.
This only manifested in IE 10; IE 9 was fine since it didn't have the `stack` property.
This commit is contained in:
parent
79c3654691
commit
61db4e05c6
1 changed files with 6 additions and 1 deletions
|
@ -27,7 +27,12 @@ suite('configuration', function () {
|
|||
fooThrows();
|
||||
assert.ok(false, 'should not get here because error thrown');
|
||||
} catch (err) {
|
||||
assert.ok(!err.stack || err.stack.indexOf('at fooThrows') === -1, 'should not have stack trace in error message');
|
||||
// IE 10 supports err.stack in Chrome format, but without
|
||||
// `Error.captureStackTrace` support that allows tuning of the error
|
||||
// message.
|
||||
if (typeof Error.captureStackTrace !== 'undefined') {
|
||||
assert.ok(!err.stack || err.stack.indexOf('at fooThrows') === -1, 'should not have stack trace in error message');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue