Skip to content

Commit

Permalink
fix: another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Dec 5, 2024
1 parent 80027ca commit 1128032
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/rules/no-unlocalized-strings.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ ruleTester.run<string, Option[]>(name, rule, {
code: `let variant; variant = input ?? "body";`,
options: [{ ignoreNames: ['variant'] }],
},
{
name: 'Ignores literals in assignment expression to variable in ignoreNames',
code: `let variant; variant = "body";`,
options: [{ ignoreNames: ['variant'] }],
},
{
code: `const test = "Hello!"`,
options: [{ ignoreNames: ['test'] }],
Expand Down

0 comments on commit 1128032

Please sign in to comment.