@@ -3,10 +3,10 @@ import { Component, ViewChild } from '@angular/core';
33import { By } from '@angular/platform-browser' ;
44import { wait } from '../../../test-utils/ui-interactions.spec' ;
55import { IgxNavigationDrawerComponent } from './navigation-drawer.component' ;
6- import { IgxNavigationService } from 'igniteui-angular/core' ;
7- import { PlatformUtil } from 'igniteui-angular/core' ;
8- import { IgxNavDrawerMiniTemplateDirective , IgxNavDrawerTemplateDirective } from './navigation-drawer.directives' ;
6+ import { IgxNavigationService , PlatformUtil } from 'igniteui-angular/core' ;
7+ import { IgxNavDrawerItemDirective , IgxNavDrawerMiniTemplateDirective , IgxNavDrawerTemplateDirective } from './navigation-drawer.directives' ;
98import { IgxNavbarComponent } from 'igniteui-angular/navbar' ;
9+ import { IgxFlexDirective , IgxLayoutDirective } from 'igniteui-angular/directives' ;
1010
1111// HammerJS simulator from https://github.com/hammerjs/simulator, manual typings TODO
1212declare let Simulator : any ;
@@ -614,10 +614,10 @@ describe('Navigation Drawer', () => {
614614 const drawerEl = fix . debugElement . query ( By . directive ( IgxNavigationDrawerComponent ) ) . nativeElement ;
615615 const navbarEl = fix . debugElement . query ( By . directive ( IgxNavbarComponent ) ) . nativeElement ;
616616
617- let flexBasis = getComputedStyle ( drawerEl ) . getPropertyValue ( 'flex-basis' ) ;
617+ let flexBasis = getComputedStyle ( drawerEl ) . width ;
618618
619619 // Mini variant pinned by default
620- expect ( flexBasis ) . toEqual ( '57px' ) ; ;
620+ expect ( parseInt ( flexBasis ) ) . toBeGreaterThan ( 0 ) ;
621621 expect ( navbarEl . offsetLeft ) . toEqual ( parseInt ( flexBasis ) ) ;
622622
623623 fix . componentInstance . navDrawer . toggle ( ) ;
@@ -719,6 +719,10 @@ class TestComponentMiniComponent extends TestComponentDIComponent {
719719 IgxNavigationDrawerComponent ,
720720 IgxNavDrawerTemplateDirective ,
721721 IgxNavDrawerMiniTemplateDirective ,
722+ IgxNavDrawerItemDirective ,
723+ IgxNavbarComponent ,
724+ IgxFlexDirective ,
725+ IgxLayoutDirective
722726 ] ,
723727 styles : `
724728 .igx-nav-drawer__aside--pinned {
0 commit comments