Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 516 Bytes

no-identical-title.md

File metadata and controls

39 lines (26 loc) · 516 Bytes

Ensure no tests have the same title

Translations: Français

Disallow tests with identical titles as it makes it hard to differentiate them.

Fail

import test from 'ava';

test('foo', t => {
	t.pass();
});

test('foo', t => {
	t.pass();
});

Pass

import test from 'ava';

test(t => {
	t.pass();
});

test('foo', t => {
	t.pass();
});

test('bar', t => {
	t.pass();
});