File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ describe('SidebarNavDividerComponent', () => {
10
10
beforeEach ( waitForAsync ( ( ) => {
11
11
TestBed . configureTestingModule ( {
12
12
imports : [ SidebarNavDividerComponent ]
13
- } )
14
- . compileComponents ( ) ;
13
+ } ) . compileComponents ( ) ;
15
14
} ) ) ;
16
15
17
16
beforeEach ( ( ) => {
@@ -21,7 +20,7 @@ describe('SidebarNavDividerComponent', () => {
21
20
item = {
22
21
divider : true
23
22
} ;
24
- component . item = item ;
23
+ fixture . componentRef . setInput ( ' item' , item ) ;
25
24
26
25
fixture . detectChanges ( ) ;
27
26
} ) ;
Original file line number Diff line number Diff line change 1
- import { Component , Input } from '@angular/core' ;
1
+ import { Component , input } from '@angular/core' ;
2
+ import { INavData } from './sidebar-nav' ;
2
3
3
4
@Component ( {
4
5
selector : 'c-sidebar-nav-divider' ,
5
6
template : ``
6
7
} )
7
8
export class SidebarNavDividerComponent {
8
- @ Input ( ) item : any ;
9
+ readonly item = input < INavData > ( ) ;
9
10
}
You can’t perform that action at this time.
0 commit comments