Skip to content

Commit

Permalink
test: improve ReadonlyDeep pattern regex
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Jun 10, 2024
1 parent 780b960 commit 66f61c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/rules/prefer-immutable-types/ts/parameters/invalid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ const tests: Array<
ReadonlyDeep: [
[
{
pattern: "^Readonly<(.+)>|(.+)$",
pattern: "^(?!ReadonlyDeep)(?:Readonly<(.+)>|(.+))$",
replace: "ReadonlyDeep<$1$2>",
},
],
Expand Down Expand Up @@ -455,7 +455,7 @@ const tests: Array<
fixer: {
ReadonlyDeep: [
{
pattern: "^Readonly<(.+)>|(.+)$",
pattern: "^(?!ReadonlyDeep)(?:Readonly<(.+)>|(.+))$",
replace: "ReadonlyDeep<$1$2>",
},
],
Expand Down

0 comments on commit 66f61c3

Please sign in to comment.