From 079f36a8a9c76f5bc1dd0b4f29c6b1ced8a787f5 Mon Sep 17 00:00:00 2001 From: Vito Date: Fri, 7 Jul 2017 08:18:07 -0700 Subject: [PATCH] Fix error on test into core component (#2062) --- .../src/services/notification.service.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ng2-components/ng2-alfresco-core/src/services/notification.service.spec.ts b/ng2-components/ng2-alfresco-core/src/services/notification.service.spec.ts index bed0331dda..0b4b5c5634 100644 --- a/ng2-components/ng2-alfresco-core/src/services/notification.service.spec.ts +++ b/ng2-components/ng2-alfresco-core/src/services/notification.service.spec.ts @@ -22,7 +22,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { NotificationService } from './notification.service'; describe('NotificationService', () => { - let fixture: ComponentFixture; + let fixture: ComponentFixture; beforeEach(async(() => { TestBed.configureTestingModule({ @@ -31,7 +31,7 @@ describe('NotificationService', () => { OverlayModule, MdSnackBarModule ], - declarations: [ComponentThatProvidesNotificationService], + declarations: [ProvidesNotificationServiceComponent], providers: [ NotificationService, MdSnackBar, @@ -44,7 +44,7 @@ describe('NotificationService', () => { })); beforeEach(() => { - fixture = TestBed.createComponent(ComponentThatProvidesNotificationService); + fixture = TestBed.createComponent(ProvidesNotificationServiceComponent); fixture.detectChanges(); }); @@ -76,7 +76,7 @@ describe('NotificationService', () => { template: '', providers: [NotificationService] }) -class ComponentThatProvidesNotificationService { +class ProvidesNotificationServiceComponent { constructor(public notificationService: NotificationService) { }