Skip to content

Commit bdeefac

Browse files
committed
Fix types
1 parent 396d2a0 commit bdeefac

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

x-pack/plugins/lens/public/indexpattern_datasource/loader.test.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,14 @@ describe('loader', () => {
969969
const setState = jest.fn();
970970
const fetchJson = (jest.fn((path: string) => {
971971
return new Promise((resolve, reject) => {
972-
reject(new HttpFetchError('timeout', 'name', {}, { status: 408 }));
972+
reject(
973+
new HttpFetchError(
974+
'timeout',
975+
'name',
976+
({} as unknown) as Request,
977+
({ status: 408 } as unknown) as Response
978+
)
979+
);
973980
});
974981
}) as unknown) as HttpHandler;
975982

0 commit comments

Comments
 (0)