-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Description
Power assertions with Ava outputs incomplete graphs.
Test Source
test('A test', t =>{
const arr = ['foo', 'bar'];
t.true(arr.indexOf('moo') !== -1);
});
Expected assertion output
t.true(arr.indexOf('moo') !== -1)
| | | |
| | | -1
| -1 false
["foo","bar"]
Note: This is the output you get from using power-assert directly in something like mocha.
Actual assertion output
t.true(arr.indexOf('moo') !== -1)
|
-1
Config
Copy the relevant section from package.json
:
{
"ava": {
"files": [
"test.js"
]
}
}
Command-Line Arguments
Copy your npm build scripts or the ava
command used:
ava
Environment
Node.js: v6.9.1
OS: darwin 15.6.0
ava: 0.16.0
yarn: 0.15.1
- Used for installing packages in my project
npm: 3.10.8
Metadata
Metadata
Assignees
Labels
No labels