Skip to content

Instantly share code, notes, and snippets.

@JaKXz
Last active January 2, 2016 20:18
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 JaKXz/c676f6b5493b0ce90225 to your computer and use it in GitHub Desktop.
Save JaKXz/c676f6b5493b0ce90225 to your computer and use it in GitHub Desktop.
AVA TAP output counting asserts incorrectly
{
"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"
}
}
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