Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 600 Bytes

no-unknown-modifiers.md

File metadata and controls

30 lines (20 loc) · 600 Bytes

Prevent the use of unknown test modifiers

Translations: Français

Prevent the use of unknown test modifiers.

Fail

const test = require('ava');

test.onlu(t => {});
test.seril(t => {});
test.cb.onlu(t => {});
test.beforeeach(t => {});
test.unknown(t => {});

Pass

const test = require('ava');

test.only(t => {});
test.serial(t => {});
test.cb.only(t => {});
test.beforeEach(t => {});