Skip to content

Commit

Permalink
chore: add special test case
Browse files Browse the repository at this point in the history
  • Loading branch information
shulaoda committed Aug 31, 2024
1 parent d901313 commit 2cdd3d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/oxc_linter/src/rules/node/no_exports_assign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ fn test() {
"module.exports = exports = {}",
"exports = module.exports = {}",
"function f(exports) { exports = {} }",
"let exports; exports = {}"
];

let fail = vec!["exports = {}"];
Expand Down

0 comments on commit 2cdd3d2

Please sign in to comment.