qunitjs / js-reporters

📋 Common Reporter Interface (CRI) for JavaScript testing frameworks.
MIT License
59 stars 18 forks source link

Reporter: Print "actual:", "expected:" even if they are undefined #102

Closed mo closed 7 years ago

mo commented 7 years ago

If "foo" was expected but the actual value was undefined, then print:

actual: undefined expected: "foo"

If undefined was expected but "foo" was returned, then we print:

actual: "foo" expected: undefined

NOTE: When "actual" and "expected" are both undefined, the error being logged is not one comparing two values, for example:

message: "Too many calls to the assert.async callback" severity: failed