Jest how to verify function is called on DOMContentLoaded event

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();
});