Closed tharun85 closed 6 years ago
I updated my project to react-notifactions. While writing jest cases, for alert("Login Failed"), I mocked using window.alert = jest.fn(). Now how could I mock NotificationManager.error(Login failed!)
Login failed!
I updated my project to react-notifactions. While writing jest cases, for alert("Login Failed"), I mocked using window.alert = jest.fn(). Now how could I mock NotificationManager.error(
Login failed!
)