I have a function that returns nothing. How can we write the jest test cases to verify this function?
onSilentTrackReadyToPlay(callback: (trackState: string) => void): void {
this.trackReadySubscription = this.MediaPlayerEventEmitter.addListener(
'silentTrackReadyToPlay',
(trackState) => {
if (callback) {
callback(trackState)
}
},
)
}