Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 494 Bytes

no-identical-title.md

File metadata and controls

33 lines (23 loc) · 494 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('foo', t => {
	t.pass();
});

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