mirror of https://github.com/vector-im/riot-web
One more type fix
parent
93682e9d13
commit
2b97de7a47
|
@ -436,7 +436,7 @@ describe("<MBeaconBody />", () => {
|
|||
beforeEach(() => {
|
||||
// mock map utils to raise MapStyleUrlNotConfigured error
|
||||
jest.spyOn(mapUtilHooks, "useMap").mockImplementation(({ onError }) => {
|
||||
onError(new Error(LocationShareError.MapStyleUrlNotConfigured));
|
||||
onError?.(new Error(LocationShareError.MapStyleUrlNotConfigured));
|
||||
return mockMap;
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue