How do I write unit test for following?
useEffect(() => {
document.body.classList.add("overflow_hidden");
return () => {
document.body.classList.remove("overflow_hidden");
}
}, []);
How do I write unit test for following?
useEffect(() => {
document.body.classList.add("overflow_hidden");
return () => {
document.body.classList.remove("overflow_hidden");
}
}, []);
Copyright © 2021 Jogjafile Inc.