---
title: "Comment by Lorde Laura on \"Mocking an event handler\" | Hashnode"
description: "In this situation, https://shellshockerss.co we cannot mock the event handler because it is internal to the component. However, we know that it calls CartServic"
url: "https://hashnode.com/posts/mocking-an-event-handler/617a45c5913b6d3f08e17610/comment/63bfcb11a54681f9eea762c4"
---

[Discussion](https://hashnode.com/posts/mocking-an-event-handler/617a45c5913b6d3f08e17610)

Comment [Mocking an event handler](https://hashnode.com/posts/mocking-an-event-handler/617a45c5913b6d3f08e17610)

[Lorde Laura](https://hashnode.com/@lorde123)

[Jan 12, 2023](https://hashnode.com/posts/mocking-an-event-handler/617a45c5913b6d3f08e17610/comment/63bfcb11a54681f9eea762c4)

In this situation, [shellshockerss.co](https://shellshockerss.co/) we cannot mock the event handler because it is internal to the component. However, we know that it calls CartService, which is an ES6 module.
