you should test if the event is defaultPrevented
see https://developer.mozilla.org/en-US/docs/Web/API/event.defaultPrevented

you should also spy event.stopPropagation to know if that has been called. (afaik there is no boolean property on event to test this)