you can still do this if you replace window.Notification with a mock.