Skip to content

Commit

Permalink
test: Add failing test for #88.
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Jan 26, 2022
1 parent ae4e844 commit f7577f6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/rules/suffix-subjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,19 @@ ruleTester({ types: true }).run("suffix-subjects", rule, {
`,
{ options: [{ suffix: "$$" }] }
),
fromFixture(
stripIndent`
// Property with $$ suffix
// https://github.com/cartant/eslint-plugin-rxjs/issues/88#issuecomment-1020645186
import { Subject } from "rxjs";
class SomeClass {
public someProperty$: Subject<unknown>;
~~~~~~~~~~~~~ [forbidden { "suffix": "$$" }]
}
`,
{ options: [{ suffix: "$$" }] }
),
fromFixture(
stripIndent`
// MySubject without suffix
Expand Down

0 comments on commit f7577f6

Please sign in to comment.