💼 This rule is enabled in the ✅ recommended
config.
When writing custom assertions, the proper way to log an assertion result
used to be calling QUnit.push()
with the assertion result data. However, in
order to allow for better control of test context, QUnit.push
has been
deprecated (to be removed in 2.0) and the correct way to log the assertion
result is to call this.pushResult()
from within the assertion function.
The following patterns are considered warnings:
QUnit.push(result, actual, expected, message);
The following patterns are not warnings:
this.pushResult({
result: result,
actual: actual,
expected: expected,
message: message
});
This rule may be safely disabled if you are working in a legacy codebase that will not be migrated to QUnit 2.0.