Skip to content

Commit 0620062

Browse files
authored
test: additional test on parent folder
1 parent c8ec0cf commit 0620062

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/src/rules/no-parent-barrel-import.js

+5
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ ruleTester.run('no-parent-barrel-import', rule, {
7474
errors: [error],
7575
filename: testFilePath('./no-parent-barrel-import.js'),
7676
}),
77+
test({
78+
code: 'import foo from ".."',
79+
errors: [error],
80+
filename: testFilePath('./no-self-import-folder/index.js'),
81+
}),
7782
test({
7883
code: 'var foo = require("./index.js")',
7984
errors: [error],

0 commit comments

Comments
 (0)