A describe/ test block should not contain accidentalSpace or duplicatePrefix.
duplicatePrefix
A describe/ test block should not start with duplicatePrefix
Examples of incorrect code for this rule
test('test foo', () => {});
it('it foo', () => {});
describe('foo', () => {
test('test bar', () => {});
});
describe('describe foo', () => {
test('bar', () => {});
});
Examples of correct code for this rule
test('foo', () => {});
it('foo', () => {});
describe('foo', () => {
test('bar', () => {});
});
accidentalSpace
A describe/ test block should not contain accidentalSpace
Examples of incorrect code for this rule
test(' foo', () => {});
it(' foo', () => {});
describe('foo', () => {
test(' bar', () => {});
});
describe(' foo', () => {
test('bar', () => {});
});
Examples of correct code for this rule
test('foo', () => {});
it('foo', () => {});
describe('foo', () => {
test('bar', () => {});
});