Back to Qunit

QUnit.config.requireExpects

docs/api/config/requireExpects.md

2.25.0317 B
Original Source

Fail tests that don't specify how many assertions they expect.

<table> <tr> <th>type</th> <td markdown="span">`boolean`</td> </tr> <tr> <th>default</th> <td markdown="span">`false`</td> </tr> </table>

Enabling this option will cause tests to fail if they don't call assert.expect().