test(aio): add sidenav tests and refactor related tests
This commit is contained in:
@ -5,9 +5,11 @@ export class MockLocationService {
|
||||
currentUrl = this.urlSubject.asObservable();
|
||||
search = jasmine.createSpy('search').and.returnValue({});
|
||||
setSearch = jasmine.createSpy('setSearch');
|
||||
go = jasmine.createSpy('Location.go');
|
||||
go = jasmine.createSpy('Location.go').and
|
||||
.callFake((url: string) => this.urlSubject.next(url));
|
||||
handleAnchorClick = jasmine.createSpy('Location.handleAnchorClick')
|
||||
.and.returnValue(false); // prevent click from causing a browser navigation
|
||||
|
||||
constructor(private initialUrl) {}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user