Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
wylieconlon committed Apr 15, 2021
1 parent 396d2a0 commit bdeefac
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,14 @@ describe('loader', () => {
const setState = jest.fn();
const fetchJson = (jest.fn((path: string) => {
return new Promise((resolve, reject) => {
reject(new HttpFetchError('timeout', 'name', {}, { status: 408 }));
reject(
new HttpFetchError(
'timeout',
'name',
({} as unknown) as Request,
({ status: 408 } as unknown) as Response
)
);
});
}) as unknown) as HttpHandler;

Expand Down

0 comments on commit bdeefac

Please sign in to comment.