File tree Expand file tree Collapse file tree 1 file changed +9
-24
lines changed Expand file tree Collapse file tree 1 file changed +9
-24
lines changed Original file line number Diff line number Diff line change 1- import  { 
2-   inject , 
3-   TestComponentBuilder , 
4-   TestBed , 
5-   async , 
6- }  from  '@angular/core/testing' ; 
1+ import  { TestBed ,  async }  from  '@angular/core/testing' ; 
72import  { Component }  from  '@angular/core' ; 
83import  { MdMenuModule }  from  './menu' ; 
94
5+ 
106describe ( 'MdMenu' ,  ( )  =>  { 
11-   let  builder : TestComponentBuilder ; 
127
138  beforeEach ( async ( ( )  =>  { 
149    TestBed . configureTestingModule ( { 
1510      imports : [ MdMenuModule ] , 
16-       declarations : [ TestList ] , 
11+       declarations : [ TestMenu ] , 
1712    } ) ; 
1813
1914    TestBed . compileComponents ( ) ; 
2015  } ) ) ; 
2116
22-   beforeEach ( inject ( [ TestComponentBuilder ] ,  ( tcb : TestComponentBuilder )  =>  { 
23-     builder  =  tcb ; 
24-   } ) ) ; 
25- 
26-   it ( 'should add and remove focus class on focus/blur' ,  async ( ( )  =>  { 
27-     var  template  =  `` ; 
28-     builder . overrideTemplate ( TestList ,  template ) . createAsync ( TestList ) . then ( fixture  =>  { 
29-        expect ( true ) . toBe ( true ) ; 
30-     } ) ; 
31-   } ) ) ; 
32- 
17+   it ( 'should add and remove focus class on focus/blur' ,  ( )  =>  { 
18+     let  fixture  =  TestBed . createComponent ( TestMenu ) ; 
19+     expect ( fixture ) . toBeTruthy ( ) ; 
20+   } ) ; 
3321} ) ; 
3422
35- @Component ( { 
36-   selector : 'test-menu' , 
37-   template : `` 
38- } ) 
39- class  TestList  { } 
23+ @Component ( { template : `` } ) 
24+ class  TestMenu  { } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments