mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fix error on test into core component (#2062)
This commit is contained in:
@@ -22,7 +22,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|||||||
import { NotificationService } from './notification.service';
|
import { NotificationService } from './notification.service';
|
||||||
|
|
||||||
describe('NotificationService', () => {
|
describe('NotificationService', () => {
|
||||||
let fixture: ComponentFixture<ComponentThatProvidesNotificationService>;
|
let fixture: ComponentFixture<ProvidesNotificationServiceComponent>;
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
@@ -31,7 +31,7 @@ describe('NotificationService', () => {
|
|||||||
OverlayModule,
|
OverlayModule,
|
||||||
MdSnackBarModule
|
MdSnackBarModule
|
||||||
],
|
],
|
||||||
declarations: [ComponentThatProvidesNotificationService],
|
declarations: [ProvidesNotificationServiceComponent],
|
||||||
providers: [
|
providers: [
|
||||||
NotificationService,
|
NotificationService,
|
||||||
MdSnackBar,
|
MdSnackBar,
|
||||||
@@ -44,7 +44,7 @@ describe('NotificationService', () => {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(ComponentThatProvidesNotificationService);
|
fixture = TestBed.createComponent(ProvidesNotificationServiceComponent);
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ describe('NotificationService', () => {
|
|||||||
template: '',
|
template: '',
|
||||||
providers: [NotificationService]
|
providers: [NotificationService]
|
||||||
})
|
})
|
||||||
class ComponentThatProvidesNotificationService {
|
class ProvidesNotificationServiceComponent {
|
||||||
constructor(public notificationService: NotificationService) {
|
constructor(public notificationService: NotificationService) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user