Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 599 Bytes

File metadata and controls

32 lines (21 loc) · 599 Bytes

no-ok-find

💼 This rule is enabled in the ✅ recommended config.

🔧 This rule is automatically fixable by the --fix CLI option.

assert.ok/notOk(find('.foo')) can be replaced with assert.dom('.foo').exists/doesNotExist().

Examples

This rule forbids the following:

assert.ok(find('.foo'))
assert.notOk(find('.foo'))

This rule allows the following:

assert.dom('.foo').exists()
assert.dom('.foo').doesNotExist()