Skip to content

Commit

Permalink
fix: serviceCodeWay component tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wil92 committed Feb 22, 2019
1 parent 7e2f231 commit c5437f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}));
Expand Down

0 comments on commit c5437f9

Please sign in to comment.