Skip to content

Instantly share code, notes, and snippets.

@patoi
Last active April 3, 2018 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patoi/ffbe8c1a11088ac4de5df900f23b44e6 to your computer and use it in GitHub Desktop.
Save patoi/ffbe8c1a11088ac4de5df900f23b44e6 to your computer and use it in GitHub Desktop.
it('is not OK - bad!', async () => {
try {
let result = await testFunction(false)
// flawed tests __pass__ instead of throws an error!
} catch (err) {
expect(err.message).to.be.equal('not OK')
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment