-
-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #251 from romario333/threshold3
Fix issue #166 - configurable threshold in objDisplay.
- Loading branch information
Showing
10 changed files
with
184 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
module.exports = { | ||
|
||
/*! | ||
* ### config.includeStack | ||
* | ||
* User configurable property, influences whether stack trace | ||
* is included in Assertion error message. Default of false | ||
* suppresses stack trace in the error message | ||
* | ||
* chai.config.includeStack = true; // enable stack on error | ||
* | ||
* @api public | ||
*/ | ||
includeStack: false, | ||
|
||
/*! | ||
* ### config.showDiff | ||
* | ||
* User configurable property, influences whether or not | ||
* the `showDiff` flag should be included in the thrown | ||
* AssertionErrors. `false` will always be `false`; `true` | ||
* will be true when the assertion has requested a diff | ||
* be shown. | ||
* | ||
* @api public | ||
*/ | ||
showDiff: true, | ||
|
||
/*! | ||
* ### config.truncateThreshold | ||
* | ||
* User configurable property, sets length threshold for actual and | ||
* expected values in assertion errors. If this threshold is exceeded, | ||
* the value is truncated. | ||
* | ||
* Set it to zero if you want to disable truncating altogether. | ||
* | ||
* chai.config.truncateThreshold = 0; // disable truncating | ||
* | ||
* @api public | ||
*/ | ||
truncateThreshold: 40 | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters