Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Top-level promises catching is problematic when tests are failing #321

@eoger

Description

@eoger

Top-level promises catching is problematic when tests are failing.

Let's say this assertion fails:

assert.equal(r.obj.tokenVerificationId, null, 'tokenVerificationId is null')

This will throw and we'll end up here:

And on my terminal, mocha will print that the following assertion is failing:

assert.equal(err.statusCode, 404, 'returns a 404')

The only way to know that the 1st assertion failed is open the chrome debugger and step in the file line by line.
I think this could be a super-valuable good-first-bug for an external contributor :)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions