Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 449 Bytes

no-skip-assert.md

File metadata and controls

27 lines (17 loc) · 449 Bytes

Ensure no assertions are skipped

Translations: Français

It's easy to make an assertion skipped with t.skip.xyz() and then forget about it.

Fail

const test = require('ava');

test('some title', t => {
	t.skip.is(1, 1);
});

Pass

const test = require('ava');

test('some title', t => {
	t.is(1, 1);
});