Skip to content

Commit

Permalink
chore: add dynamic field names to valid test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
FRSgit committed Dec 20, 2024
1 parent 378f58b commit 633829c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/prefer-class-fields.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ test.snapshot({
}
}
`,
outdent`
class Foo {
something = 'a';
constructor() {
this[this.something] = 'foo';
}
}
`,
],
invalid: [
outdent`
Expand Down

0 comments on commit 633829c

Please sign in to comment.