Skip to content

Commit

Permalink
refactor(common): refactor mock_plateform_location.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aahmedayed committed Sep 18, 2020
1 parent f329036 commit 3ed86c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/common/testing/src/mock_platform_location.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ export class MockPlatformLocation implements PlatformLocation {
private scheduleHashUpdate(oldHash: string, oldUrl: string) {
if (oldHash !== this.hash) {
scheduleMicroTask(
() => this.hashUpdate.next(
{ type: 'hashchange', state: null, oldUrl, newUrl: this.url } as LocationChangeEvent));
() => this.hashUpdate.next(
{type: 'hashchange', state: null, oldUrl, newUrl: this.url} as LocationChangeEvent));
}
}
}
Expand Down

0 comments on commit 3ed86c0

Please sign in to comment.