diff --git a/src/app/pages/component-sidenav/component-sidenav.spec.ts b/src/app/pages/component-sidenav/component-sidenav.spec.ts index 2ce1cc5c..f0a6e2fa 100644 --- a/src/app/pages/component-sidenav/component-sidenav.spec.ts +++ b/src/app/pages/component-sidenav/component-sidenav.spec.ts @@ -30,7 +30,7 @@ describe('ComponentSidenav', () => { waitForAsync(() => { expect(component.sidenav() instanceof MatSidenav).toBeTruthy(); component.isScreenSmall.pipe(take(1)).subscribe(isSmall => expect(isSmall).toBeTruthy()); - expect(component.sidenav().opened).toBe(false); + expect(component.sidenav()!.opened).toBe(false); }); }); diff --git a/src/app/pages/component-sidenav/component-sidenav.ts b/src/app/pages/component-sidenav/component-sidenav.ts index ada233dc..6f66f260 100644 --- a/src/app/pages/component-sidenav/component-sidenav.ts +++ b/src/app/pages/component-sidenav/component-sidenav.ts @@ -16,11 +16,7 @@ import {AsyncPipe} from '@angular/common'; import {FormsModule} from '@angular/forms'; import {MatIconModule} from '@angular/material/icon'; import {MatListModule} from '@angular/material/list'; -import { - MatSidenav, - MatSidenavModule, - MatDrawerToggleResult, -} from '@angular/material/sidenav'; +import {MatSidenav, MatSidenavModule} from '@angular/material/sidenav'; import { ActivatedRoute, Params,