-
Notifications
You must be signed in to change notification settings - Fork 777
Closed
Labels
Component: HTML ReporterType: EnhancementNew idea or feature request.New idea or feature request.good first issueStraight-forward to start and receive help with.Straight-forward to start and receive help with.
Description
Using qunitjs 2.3.2, the test below fails to print the "actual" value, just because sum() happened to return undefined as the incorrect/buggy value. If it returned "wrong" instead, the "actual" is printed next to the "expected" so it's easier to see what went wrong. If a string value was expected and undefined was returned instead, then it would be nicer if qunit printed "actual: undefined" to make that clear.
var isCurrentlyBuggy = true;
function sum(a, b) {
if (isCurrentlyBuggy) {
return undefined;
}
return a + b;
}
QUnit.only('my test', assert => {
assert.equal(sum(1, 1), 2);
});Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component: HTML ReporterType: EnhancementNew idea or feature request.New idea or feature request.good first issueStraight-forward to start and receive help with.Straight-forward to start and receive help with.