Skip to content

Commit

Permalink
Update test which was meant to be for private field
Browse files Browse the repository at this point in the history
  • Loading branch information
robatwilliams committed Jan 17, 2024
1 parent 1c6b399 commit 4a06a1b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ ruleTester.run('compat', require('../rule'), {
errors: [{ message: "ES2022 'Array.prototype.at' method is forbidden." }],
},
{
code: 'class A { a = 0 }',
errors: [{ message: "ES2020 field 'a' is forbidden." }],
code: 'class A { #a = 0 }',
errors: [{ message: 'ES2020 private field #a is forbidden.' }],
},
{
code: 'class A { static { } }',
Expand Down

0 comments on commit 4a06a1b

Please sign in to comment.