Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 638 Bytes

no-duplicate-modifiers.md

File metadata and controls

30 lines (20 loc) · 638 Bytes

Ensure tests do not have duplicate modifiers

Translations: Français

Prevent the use of duplicate test modifiers.

Fail

const test = require('ava');

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

Pass

const test = require('ava');

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