[SI-1867] fix unit test
Signed-off-by: Peter Buschmann <peter.buschmann@pta.de>
diff --git a/projects/grid-failure-information-app/src/app/shared/async-services/http/httpResponseHandler.service.spec.ts b/projects/grid-failure-information-app/src/app/shared/async-services/http/httpResponseHandler.service.spec.ts
index 242e1b3..481d611 100644
--- a/projects/grid-failure-information-app/src/app/shared/async-services/http/httpResponseHandler.service.spec.ts
+++ b/projects/grid-failure-information-app/src/app/shared/async-services/http/httpResponseHandler.service.spec.ts
@@ -31,6 +31,7 @@
};
notificationsService = {
error() {},
+ warn() {},
info() {},
};
configService = {
@@ -162,9 +163,9 @@
expect(spy2).toHaveBeenCalled();
});
- it('should show an error notification when calling handleRefExists', () => {
+ it('should show an warning notification when calling handleRefExists', () => {
const spy = spyOn(translateService, 'instant');
- const spy2 = spyOn(component as any, 'showNotificationError');
+ const spy2 = spyOn(component as any, 'showNotificationWarning');
(component as any).handleRefExists();
expect(spy).toHaveBeenCalledWith('ServerError409');