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' ;
7
2
import { Component } from '@angular/core' ;
8
3
import { MdMenuModule } from './menu' ;
9
4
5
+
10
6
describe ( 'MdMenu' , ( ) => {
11
- let builder : TestComponentBuilder ;
12
7
13
8
beforeEach ( async ( ( ) => {
14
9
TestBed . configureTestingModule ( {
15
10
imports : [ MdMenuModule ] ,
16
- declarations : [ TestList ] ,
11
+ declarations : [ TestMenu ] ,
17
12
} ) ;
18
13
19
14
TestBed . compileComponents ( ) ;
20
15
} ) ) ;
21
16
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
+ } ) ;
33
21
} ) ;
34
22
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