Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 687 Bytes

no-identical-title.md

File metadata and controls

37 lines (25 loc) · 687 Bytes

Ensure no tests have the same title (ava/no-identical-title)

💼 This rule is enabled in the ✅ recommended config.

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();
});