fix(ui): correct typescript errors

This commit is contained in:
Łukasz Mierzwa
2021-06-03 11:09:18 +01:00
committed by Łukasz Mierzwa
parent 3edb73675e
commit aeb9f21b13

View File

@@ -28,7 +28,7 @@ const MountedModal = (isOpen: boolean, isUpper?: boolean) => {
describe("<ModalInner />", () => {
it("scroll isn't enabled if ref is null", () => {
const useRefSpy = jest.spyOn(React, "useRef").mockImplementation(() =>
Object.defineProperty({}, "current", {
Object.defineProperty({} as any, "current", {
get: () => null,
set: () => {},
})