@@ -2,18 +2,18 @@ import { Component, PLATFORM_ID, ViewChild } from '@angular/core';
22import { ComponentFixture , fakeAsync , TestBed , tick } from '@angular/core/testing' ;
33import { first , skip } from 'rxjs/operators' ;
44import { FlowInjectionToken } from './flow-injection-token' ;
5- import { FlowChangeEvent , Flow , NgxFlowEvent } from './flow.directive' ;
5+ import { FlowChangeEvent , FlowConfig , NgxFlowEvent } from './flow.directive' ;
66import { flowFileMockFactory } from './helpers/tests/flow-file-mock-factory' ;
77import { FlowMock } from './helpers/tests/flow-mock' ;
88import { trasnferMockFactory } from './helpers/tests/transfer-mock-factory' ;
99
1010@Component ( {
1111 template : `<ng-container #flow="flow" [flowConfig]="config"></ng-container>` ,
12- imports : [ Flow ]
12+ imports : [ FlowConfig ]
1313} )
1414class TestComponent {
1515 @ViewChild ( 'flow' , { static : true } )
16- flow ! : Flow ;
16+ flow ! : FlowConfig ;
1717
1818 config = { target : 'http://localhost:3000/upload' } ;
1919}
@@ -38,7 +38,7 @@ describe('Flow', () => {
3838
3939 it ( 'should initialize flowjs and export flow directive as template reference variable' , ( ) => {
4040 fixture . detectChanges ( ) ;
41- expect ( component . flow instanceof Flow ) . toBeTruthy ( ) ;
41+ expect ( component . flow instanceof FlowConfig ) . toBeTruthy ( ) ;
4242 expect ( component . flow . flowJs ) . toBeDefined ( ) ;
4343 expect ( component . flow . flowJs . opts . target ) . toBe ( 'http://localhost:3000/upload' ) ;
4444 } ) ;
@@ -197,7 +197,7 @@ describe('Flow (SSR)', () => {
197197
198198 beforeEach ( ( ) => {
199199 TestBed . configureTestingModule ( {
200- imports : [ TestComponent , Flow ] ,
200+ imports : [ TestComponent , FlowConfig ] ,
201201 providers : [
202202 {
203203 provide : FlowInjectionToken ,
0 commit comments