mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
One more type fix
This commit is contained in:
@@ -436,7 +436,7 @@ describe("<MBeaconBody />", () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
// mock map utils to raise MapStyleUrlNotConfigured error
|
// mock map utils to raise MapStyleUrlNotConfigured error
|
||||||
jest.spyOn(mapUtilHooks, "useMap").mockImplementation(({ onError }) => {
|
jest.spyOn(mapUtilHooks, "useMap").mockImplementation(({ onError }) => {
|
||||||
onError(new Error(LocationShareError.MapStyleUrlNotConfigured));
|
onError?.(new Error(LocationShareError.MapStyleUrlNotConfigured));
|
||||||
return mockMap;
|
return mockMap;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user