fix(tests): fix modal test

This commit is contained in:
Łukasz Mierzwa
2020-07-24 14:48:36 +01:00
committed by Łukasz Mierzwa
parent 302360f304
commit 522af74eaf

View File

@@ -38,7 +38,8 @@ describe("<ModalInner />", () => {
tree.setProps({ isUpper: false });
tree.setProps({ isUpper: true });
tree.setProps({ isUpper: false });
expect(useRefSpy).toHaveBeenCalledTimes(4);
expect(useRefSpy).toHaveBeenCalled();
expect(document.body.className.split(" ")).not.toContain("modal-open");
});
it("'modal-open' class is appended to MountModal container", () => {