Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanujkanti4441 committed Mar 6, 2024
1 parent 6b9558a commit bc4a880
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/lib/rules/no-unused-vars.js
Original file line number Diff line number Diff line change
Expand Up @@ -1601,7 +1601,14 @@ c = foo1`,
errors: [{ ...definedError("Foo"), line: 1, column: 7 }]
},
{
code: "class Foo { static bar }",
code: "class Foo { static bar; }",
options: [{ ignoreClassWithStaticInitBlock: true }],
languageOptions: { ecmaVersion: 2022 },
errors: [{ ...definedError("Foo"), line: 1, column: 7 }]
},
{
code: "class Foo { static bar() {} }",
options: [{ ignoreClassWithStaticInitBlock: true }],
languageOptions: { ecmaVersion: 2022 },
errors: [{ ...definedError("Foo"), line: 1, column: 7 }]
}
Expand Down

0 comments on commit bc4a880

Please sign in to comment.