Skip to content

Commit d87dfc9

Browse files
committed
MOBILE-4636 behat: Remove unnecessary variable navSubscription
1 parent f0ef97b commit d87dfc9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/testing/services/behat-blocking.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
NavigationError,
2525
NavigationStart,
2626
} from '@angular/router';
27-
import { Subscription, filter } from 'rxjs';
27+
import { filter } from 'rxjs';
2828
import { CoreNavigator } from '@services/navigator';
2929

3030
/**
@@ -39,7 +39,6 @@ export class TestingBehatBlockingService {
3939
protected lastMutation = 0;
4040
protected initialized = false;
4141
protected keyIndex = 0;
42-
protected navSubscription?: Subscription;
4342

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

63-
this.navSubscription = Router.events
62+
Router.events
6463
.pipe(filter(event =>
6564
event instanceof NavigationStart ||
6665
event instanceof NavigationEnd ||

0 commit comments

Comments
 (0)