Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 379 Bytes

no-identical-title.md

File metadata and controls

37 lines (25 loc) · 379 Bytes

Ensure no tests have the same title

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

Fail

import test from 'tape';

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

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

Pass

import test from 'tape';

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

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

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