Skip to content

Commit

Permalink
test: additional test on parent folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jonioni authored May 8, 2023
1 parent c8ec0cf commit 0620062
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/rules/no-parent-barrel-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ ruleTester.run('no-parent-barrel-import', rule, {
errors: [error],
filename: testFilePath('./no-parent-barrel-import.js'),
}),
test({
code: 'import foo from ".."',
errors: [error],
filename: testFilePath('./no-self-import-folder/index.js'),
}),
test({
code: 'var foo = require("./index.js")',
errors: [error],
Expand Down

0 comments on commit 0620062

Please sign in to comment.