Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IsTrue always works #38

Open
tex0l opened this issue Jul 3, 2018 · 0 comments
Open

IsTrue always works #38

tex0l opened this issue Jul 3, 2018 · 0 comments

Comments

@tex0l
Copy link

tex0l commented Jul 3, 2018

Versions

  • dirty-chai v2.0.1
  • chai v4.1.2
  • node v10.2.1

Steps to reproduce

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')
}

Expected behaviour

I should get I should be called.

Actual behaviour

I get I should never be called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant