exists() requires a message or else QUnit complains
- Dominant language
- JavaScript
- Stars
- 571
- Forks
- 370
- PR merge metrics
- No merged PRs in 30d
Description
If `exists()` is the only test which runs and a message is omitted, QUnit will complain that at least 1 assertion was expected.
``` javascript
QUnit.test("The input exists", function () {
F("input").exists();
});
```
The following will report that 1 assertion was successful:
``` javascript
QUnit.test("The input exists", function () {
F("input").exists('The input exists');
});
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the exists() entry point and trace how it reports assertions to QUnit. Reproduce the issue with the two QUnit.test examples in the report; done means exists() without a message records one successful assertion and QUnit no longer complains about the expected assertion count.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100