From c5437f937fe2b964fafc75e7931751085e53dd0b Mon Sep 17 00:00:00 2001 From: wil92 Date: Fri, 22 Feb 2019 15:14:01 -0500 Subject: [PATCH] fix: serviceCodeWay component tests --- src/app/service-code-way/service-code-way.component.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/service-code-way/service-code-way.component.spec.ts b/src/app/service-code-way/service-code-way.component.spec.ts index 1c395b81..bcf7a114 100644 --- a/src/app/service-code-way/service-code-way.component.spec.ts +++ b/src/app/service-code-way/service-code-way.component.spec.ts @@ -58,7 +58,7 @@ describe('ServiceCodeWayComponent', () => { describe('onChange', () => { it('should upload the files after the input files change', async(() => { - spyOn(comp, 'getFiles').and.returnValue([null] as FileList); + spyOn(comp, 'getFiles').and.returnValue([{} as File] as FileList); comp.onChange(); expect(uploadService.handleFile).toHaveBeenCalled(); }));