-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Labels
Description
An error is thrown when data.title
is a non-string here: new mocha.Test(data.title, true)
.
(node:26651) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Test `title` should be a "string" but "number" was given instead.
(node:26651) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: No test information found for {"file":"http://localhost:3996/test/index.html","id":"3579e9fb15341a2bdf24b2bd7ee32d3b","title":5,"parent":"64b475e08b3b8c40f6040445dadc1695","status":"passed","state":"passed"}
This happens in situations like this:
QUnit.ok(m.l[0].id, 5, "correct props");
We should coerce these titles to strings.