Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 526 Bytes

no-identical-title.md

File metadata and controls

39 lines (26 loc) · 526 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

const test = require('ava');

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

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

Pass

const test = require('ava');

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

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

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