Skip to content

Commit

Permalink
test: Add failing test for #93.
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Jan 12, 2022
1 parent 9a3b48c commit 8088208
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/rules/no-ignored-takewhile-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,19 @@ ruleTester({ types: true }).run("no-ignored-takewhile-value", rule, {
([_, width]) => w.innerWidth >= width,
)
`,
stripIndent`
// https://github.com/cartant/eslint-plugin-rxjs/issues/93
import { Observable } from "rxjs";
import { takeWhile } from "rxjs/operators";
class Something {
constructor(private _source: Observable<{ name: string }>) {
_source.pipe(
takeWhile(({ name }) => { return name; })
).subscribe();
}
};
`,
],
invalid: [
fromFixture(
Expand Down

0 comments on commit 8088208

Please sign in to comment.