1
1
import { Component , OnInit , DebugElement } from '@angular/core' ;
2
2
import { CommonModule } from '@angular/common' ;
3
- import { ComponentFixture , TestBed , async } from '@angular/core/testing' ;
3
+ import { ComponentFixture , TestBed } from '@angular/core/testing' ;
4
4
5
5
import { MockMatchMedia } from '../../media-query/mock/mock-match-media' ;
6
6
import { MatchMedia } from '../../media-query/match-media' ;
7
7
import { BreakPointsProvider } from '../../media-query/providers/break-points-provider' ;
8
8
import { BreakPointRegistry } from '../../media-query/breakpoints/break-point-registry' ;
9
9
import { FlexLayoutModule } from '../_module' ;
10
10
11
- import { customMatchers , expect } from '../../utils/testing/custom-matchers' ;
11
+ import { customMatchers } from '../../utils/testing/custom-matchers' ;
12
12
import { makeCreateTestComponent , makeExpectDOMFrom , makeExpectDOMForQuery } from '../../utils/testing/helpers' ;
13
13
14
14
describe ( 'flex directive' , ( ) => {
15
15
let fixture : ComponentFixture < any > ;
16
- let createTestComponent = makeCreateTestComponent ( ( ) => TestFlexComponent ) ;
17
16
let expectDOMFrom = makeExpectDOMFrom ( ( ) => TestFlexComponent ) ;
18
17
let expectDomForQuery = makeExpectDOMForQuery ( ( ) => TestFlexComponent ) ;
19
- let activateMediaQuery = ( alias , allowOverlaps ?:boolean ) => {
20
- let matchMedia : MockMatchMedia = fixture . debugElement . injector . get ( MatchMedia ) ;
21
- matchMedia . activate ( alias , allowOverlaps ) ;
22
- } ;
23
18
24
- beforeEach ( async ( ( ) => {
19
+ beforeEach ( ( ) => {
25
20
jasmine . addMatchers ( customMatchers ) ;
26
21
27
22
// Configure testbed to prepare services
@@ -33,7 +28,7 @@ describe('flex directive', () => {
33
28
{ provide : MatchMedia , useClass : MockMatchMedia }
34
29
]
35
30
} )
36
- } ) ) ;
31
+ } ) ;
37
32
afterEach ( ( ) => {
38
33
if ( fixture ) {
39
34
fixture . debugElement . injector . get ( MatchMedia ) . clearAll ( ) ;
0 commit comments