Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 433 Bytes

no-identical-title.md

File metadata and controls

37 lines (26 loc) · 433 Bytes

Ensure no tests have the same title

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

Fail

import tap from 'tap';

tap.test('some test', t => {
	t.pass();
	t.end();
});

tap.test('some test', t => {
	t.pass();
	t.end();
});

Pass

import tap from 'tap';

tap.test('some test', t => {
	t.pass();
	t.end();
});

tap.test('some other test', t => {
	t.pass();
	t.end();
});