I need to write unit test for following code. I need to check initCarousel is called on document load
// carousel.js
document.addEventListner('DOMContentLoaded', () => {
initCarousel();
});
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I need to write unit test for following code. I need to check initCarousel is called on document load
// carousel.js
document.addEventListner('DOMContentLoaded', () => {
initCarousel();
});