Skip to content

Commit fa964bb

Browse files
committed
fix test
1 parent cb4061b commit fa964bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/ngx-flow/src/lib/flow.directive.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ import { Component, PLATFORM_ID, ViewChild } from '@angular/core';
22
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
33
import { first, skip } from 'rxjs/operators';
44
import { FlowInjectionToken } from './flow-injection-token';
5-
import { FlowChangeEvent, Flow, NgxFlowEvent } from './flow.directive';
5+
import { FlowChangeEvent, FlowConfig, NgxFlowEvent } from './flow.directive';
66
import { flowFileMockFactory } from './helpers/tests/flow-file-mock-factory';
77
import { FlowMock } from './helpers/tests/flow-mock';
88
import { 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
})
1414
class 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

Comments
 (0)