test: show full object diff (#28069)

Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
This commit is contained in:
trop[bot]
2021-03-09 19:52:20 +09:00
committed by GitHub
parent 9a2ea12d71
commit 9e723746e9
3 changed files with 11 additions and 5 deletions

View File

@@ -91,6 +91,10 @@
chai.use(require('chai-as-promised'))
chai.use(require('dirty-chai'))
// Show full object diff
// https://github.com/chaijs/chai/issues/469
chai.config.truncateThreshold = 0;
const runner = mocha.run(() => {
// Ensure the callback is called after runner is defined
setTimeout(() => {