Last active
January 2, 2016 20:18
-
-
Save JaKXz/c676f6b5493b0ce90225 to your computer and use it in GitHub Desktop.
AVA TAP output counting asserts incorrectly
This file contains 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
{ | |
"name": "ava-TAP-counting-asserts", | |
"version": "1.0.0", | |
"description": "", | |
"main": "test.js", | |
"scripts": { | |
"test": "ava --tap | tap-out | tee tap-out.txt" | |
}, | |
"author": "", | |
"license": "MIT", | |
"devDependencies": { | |
"ava": "^0.9.1", | |
"chai": "^3.4.1", | |
"tap-out": "^1.4.1" | |
} | |
} |
This file contains 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
import test from 'ava'; | |
import {expect} from 'chai'; | |
test('two mixed assertions should produce two total asserts', t => { | |
t.ok(true, 'should count first and second assertions'); | |
expect(false).to.be.false; | |
}); | |
test('two ava assertions should also produce two total asserts', t => { | |
t.ok(true, 'should count first assert'); | |
t.notOk(false, 'should count second assert'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment