mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
37 lines
699 B
Markdown
37 lines
699 B
Markdown
|
# Disallow empty titles
|
||
|
|
||
|
Having an empty string as your test title is pretty useless. This rule reports
|
||
|
an error if it finds an empty string as s test title.
|
||
|
|
||
|
This rule is not auto-fixable.
|
||
|
|
||
|
## Rule Details
|
||
|
|
||
|
The following patterns are considered warnings:
|
||
|
|
||
|
```js
|
||
|
describe('', () => {});
|
||
|
describe('foo', () => {
|
||
|
it('', () => {});
|
||
|
});
|
||
|
it('', () => {});
|
||
|
test('', () => {});
|
||
|
xdescribe('', () => {});
|
||
|
xit('', () => {});
|
||
|
xtest('', () => {});
|
||
|
```
|
||
|
|
||
|
These patterns would not be considered warnings:
|
||
|
|
||
|
```js
|
||
|
describe('foo', () => {});
|
||
|
describe('foo', () => {
|
||
|
it('bar', () => {});
|
||
|
});
|
||
|
test('foo', () => {});
|
||
|
it('foo', () => {});
|
||
|
xdescribe('foo', () => {});
|
||
|
xit('foo', () => {});
|
||
|
xtest('foo', () => {});
|
||
|
```
|