Skip to content

Commit

Permalink
test: Replace this in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Dec 31, 2021
1 parent 1bf3d91 commit 8998c28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/rules/no-unsafe-takeuntil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,14 @@ ruleTester({ types: true }).run("no-unsafe-takeuntil", rule, {
import { of } from "rxjs";
import { switchMap, takeUntil } from "rxjs/operators";
declare const untilDestroyed: Function;
declare const obj: { untilDestroyed: Function };
const a = of("a");
const b = of("b");
const c = of("d");
const d = a.pipe(this.untilDestroyed(), switchMap(_ => b)).subscribe();
~~~~~~~~~~~~~~~~~~~ [forbidden]
const d = a.pipe(obj.untilDestroyed(), switchMap(_ => b)).subscribe();
~~~~~~~~~~~~~~~~~~ [forbidden]
`,
{
options: [
Expand Down

0 comments on commit 8998c28

Please sign in to comment.