Open
Description
Disallow unwanted module/test string names.
- No leading/trailing spaces (autofixable)
- No empty strings
- No missing name (ava/test-title)
- No non-string values (numbers, objects, etc)
- No strings starting/ending in qunit delimiters (
>
or:
) - We could also allow a regexp
pattern
option to be passed to this rule defining the required format (ava/test-title-format)
A few disallowed examples:
module(' Foo Bar @unit ', function () {});
test(' it does foo ', function () {});
Related: qunit/no-identical-names