mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(tests): fix modal test
This commit is contained in:
committed by
Łukasz Mierzwa
parent
302360f304
commit
522af74eaf
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user