MOBILE-4636 behat: Remove unnecessary variable navSubscription

main
Pau Ferrer Ocaña 2024-09-05 17:06:48 +02:00
parent f0ef97b377
commit d87dfc9678
1 changed files with 2 additions and 3 deletions

View File

@ -24,7 +24,7 @@ import {
NavigationError, NavigationError,
NavigationStart, NavigationStart,
} from '@angular/router'; } from '@angular/router';
import { Subscription, filter } from 'rxjs'; import { filter } from 'rxjs';
import { CoreNavigator } from '@services/navigator'; import { CoreNavigator } from '@services/navigator';
/** /**
@ -39,7 +39,6 @@ export class TestingBehatBlockingService {
protected lastMutation = 0; protected lastMutation = 0;
protected initialized = false; protected initialized = false;
protected keyIndex = 0; protected keyIndex = 0;
protected navSubscription?: Subscription;
/** /**
* Listen to mutations and override XML Requests. * Listen to mutations and override XML Requests.
@ -60,7 +59,7 @@ export class TestingBehatBlockingService {
win.M.util = win.M.util ?? {}; win.M.util = win.M.util ?? {};
win.M.util.pending_js = win.M.util.pending_js ?? []; win.M.util.pending_js = win.M.util.pending_js ?? [];
this.navSubscription = Router.events Router.events
.pipe(filter(event => .pipe(filter(event =>
event instanceof NavigationStart || event instanceof NavigationStart ||
event instanceof NavigationEnd || event instanceof NavigationEnd ||