Last active
April 3, 2018 08:40
-
-
Save patoi/ffbe8c1a11088ac4de5df900f23b44e6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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