Open tex0l opened 6 years ago
dirty-chai v2.0.1
chai v4.1.2
node v10.2.1
const chai = require('chai') const dc = require('dirty-chai') chai.use(dc) try { chai.assert.isTrue(false) console.log('I should never be called') } catch (error) { console.log('I should be called') }
I should get I should be called.
I should be called
I get I should never be called.
I should never be called
Versions
dirty-chai v2.0.1
chai v4.1.2
node v10.2.1
Steps to reproduce
Expected behaviour
I should get
I should be called
.Actual behaviour
I get
I should never be called
.