mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
test(linter): add test case for no_unused_vars in 3b87ac4
This commit is contained in:
parent
3b87ac48ce
commit
3835189785
1 changed files with 4 additions and 3 deletions
|
|
@ -110,6 +110,7 @@ fn test_vars_simple() {
|
|||
// type annotations do not get clobbered
|
||||
("let x: number = 1; x = 2;", "let _x: number = 1; _x = 2;", None, FixKind::DangerousFix),
|
||||
("const { a } = obj;", "", None, FixKind::DangerousSuggestion),
|
||||
("let [f,\u{a0}a]=p", "let [,a]=p", None, FixKind::DangerousSuggestion),
|
||||
];
|
||||
|
||||
Tester::new(NoUnusedVars::NAME, pass, fail)
|
||||
|
|
|
|||
Loading…
Reference in a new issue