Below, you will find an example of code snippet:
this.paymentTypesService.updatePaymentTypesOrder('cashout', newOrder).subscribe(() => {
this.notificationsService.success(
'Success!',
`Order change saved successfully`,
{ showProgressBar: true, pauseOnHover: true, clickToClose: true }
);
}, () => {
this.notificationsService.error(
'Error',
`Order change save failed`,
{ showProgressBar: true, pauseOnHover: true, clickToClose: true }
);
});
The paymentTypesService
utilizes a basic Http service for its methods... What is the appropriate approach to testing the error handler in this scenario?