From d87dfc96783437b13ca1b19ecfe18cd800158066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 5 Sep 2024 17:06:48 +0200 Subject: [PATCH] MOBILE-4636 behat: Remove unnecessary variable navSubscription --- src/testing/services/behat-blocking.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/testing/services/behat-blocking.ts b/src/testing/services/behat-blocking.ts index e82a66509..ed6a2c646 100644 --- a/src/testing/services/behat-blocking.ts +++ b/src/testing/services/behat-blocking.ts @@ -24,7 +24,7 @@ import { NavigationError, NavigationStart, } from '@angular/router'; -import { Subscription, filter } from 'rxjs'; +import { filter } from 'rxjs'; import { CoreNavigator } from '@services/navigator'; /** @@ -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. @@ -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 ||