Skip to content

t.throws exception when it doesnt throw #1176

@ccorcos

Description

@ccorcos

with the following file:

import test from 'ava'

test('foo', t => {
  t.throws(() => {})
})

I get an error:

❯❯❯ ava src/pcombs3.test.js

  2 exceptions

  Uncaught Exception
  TypeError: Cannot read property 'type' of undefined
    node_modules/clean-yaml-object/index.js:69:9
    cleanYamlObj (node_modules/clean-yaml-object/index.js:57:15)
    module.exports (node_modules/clean-yaml-object/index.js:3:9)

  ✖ Test results were not received from src/pcombs3.test.js

Versions:

Node.js v7.0.0
darwin 16.0.0
0.17.0
4.0.1

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