Skip to content

Commit

Permalink
MOBILE-4636 behat: Remove unnecessary variable navSubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyserver committed Sep 17, 2024
1 parent f0ef97b commit d87dfc9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/testing/services/behat-blocking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
NavigationError,
NavigationStart,
} from '@angular/router';
import { Subscription, filter } from 'rxjs';
import { filter } from 'rxjs';
import { CoreNavigator } from '@services/navigator';

/**
Expand All @@ -39,7 +39,6 @@ export class TestingBehatBlockingService {
protected lastMutation = 0;
protected initialized = false;
protected keyIndex = 0;
protected navSubscription?: Subscription;

/**
* Listen to mutations and override XML Requests.
Expand All @@ -60,7 +59,7 @@ export class TestingBehatBlockingService {
win.M.util = win.M.util ?? {};
win.M.util.pending_js = win.M.util.pending_js ?? [];

this.navSubscription = Router.events
Router.events
.pipe(filter(event =>
event instanceof NavigationStart ||
event instanceof NavigationEnd ||
Expand Down

0 comments on commit d87dfc9

Please sign in to comment.