bitovi / bitovi/funcunit

exists() requires a message or else QUnit complains

Open
#127 2 comments 0 reactions 0 assignees View on GitHub
p3
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.