Skip to content

Commit

Permalink
test: improve ReadonlyDeep pattern regex (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Jun 19, 2024
1 parent c2f5865 commit f6901a6
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 f6901a6

Please sign in to comment.