Fix error on test into core component (#2062)

This commit is contained in:
Vito
2017-07-07 08:18:07 -07:00
committed by Eugenio Romano
parent 3b8cf27862
commit af63d2e805

View File

@@ -22,7 +22,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NotificationService } from './notification.service';
describe('NotificationService', () => {
let fixture: ComponentFixture<ComponentThatProvidesNotificationService>;
let fixture: ComponentFixture<ProvidesNotificationServiceComponent>;
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) {
}