Skip to content

Commit

Permalink
test: import plugin instead of specifc rule
Browse files Browse the repository at this point in the history
This enhances the test to catch any issue that would break `index.js`
from being able to correctly import the default export of
`rules/no-use-extend-native.js`.
  • Loading branch information
dustinspecker committed May 17, 2020
1 parent e85d210 commit e90d3d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test.js
@@ -1,10 +1,12 @@
'use strict'
import AvaRuleTester from 'eslint-ava-rule-tester'
import noUseExtendNativeRule from '../rules/no-use-extend-native'
import noUseExtendNative from '..'
import test from 'ava'

const ruleTester = new AvaRuleTester(test)

const noUseExtendNativeRule = noUseExtendNative.rules['no-use-extend-native']

ruleTester.run('no-use-extend-native/no-use-extend-native', noUseExtendNativeRule, {
valid: [
'error.plugin',
Expand Down

0 comments on commit e90d3d3

Please sign in to comment.