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', () => {
1010 beforeEach ( waitForAsync ( ( ) => {
1111 TestBed . configureTestingModule ( {
1212 imports : [ SidebarNavDividerComponent ]
13- } )
14- . compileComponents ( ) ;
13+ } ) . compileComponents ( ) ;
1514 } ) ) ;
1615
1716 beforeEach ( ( ) => {
@@ -21,7 +20,7 @@ describe('SidebarNavDividerComponent', () => {
2120 item = {
2221 divider : true
2322 } ;
24- component . item = item ;
23+ fixture . componentRef . setInput ( ' item' , item ) ;
2524
2625 fixture . detectChanges ( ) ;
2726 } ) ;
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' ;
23
34@Component ( {
45 selector : 'c-sidebar-nav-divider' ,
56 template : ``
67} )
78export class SidebarNavDividerComponent {
8- @ Input ( ) item : any ;
9+ readonly item = input < INavData > ( ) ;
910}
You can’t perform that action at this time.
0 commit comments