Skip to content

Power-assert graph incomplete #1090

@jyboudreau

Description

@jyboudreau

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions