Skip to content

Commit

Permalink
test: add cases for no-default-export and no-named-export
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Sep 26, 2024
1 parent d1f4b67 commit e5a76f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/src/rules/no-default-export.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const rule = require('rules/no-default-export');

ruleTester.run('no-default-export', rule, {
valid: [
'module.exports = function foo() {}',
test({
code: `
export const foo = 'foo';
Expand Down
1 change: 1 addition & 0 deletions tests/src/rules/no-named-export.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const rule = require('rules/no-named-export');

ruleTester.run('no-named-export', rule, {
valid: [].concat(
'module.export.foo = function () {}',
test({
code: 'export default function bar() {};',
}),
Expand Down

0 comments on commit e5a76f0

Please sign in to comment.