diff --git a/support-portal-frontend/src/app/service/notification.service.spec.ts b/support-portal-frontend/src/app/service/notification.service.spec.ts new file mode 100644 index 0000000..899735a --- /dev/null +++ b/support-portal-frontend/src/app/service/notification.service.spec.ts @@ -0,0 +1,16 @@ +import {TestBed} from '@angular/core/testing'; + +import {NotificationService} from './notification.service'; + +describe('NotificationService', () => { + let service: NotificationService; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(NotificationService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/support-portal-frontend/src/app/service/notification.service.ts b/support-portal-frontend/src/app/service/notification.service.ts new file mode 100644 index 0000000..986497c --- /dev/null +++ b/support-portal-frontend/src/app/service/notification.service.ts @@ -0,0 +1,16 @@ +import {Injectable} from '@angular/core'; +import {NotifierService} from "angular-notifier"; + +@Injectable({ + providedIn: 'root' +}) +export class NotificationService { + + constructor(private notifier: NotifierService) { + } + + public notify(type: string, message: string): void { + this.notifier.notify(type, message); + } + +}