1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3 import { PopoverModule } from 'ngx-bootstrap/popover';
5 import { NotificationService } from '../../../shared/services/notification.service';
6 import { SharedModule } from '../../../shared/shared.module';
7 import { NotificationsComponent } from './notifications.component';
9 describe('NotificationsComponent', () => {
10 let component: NotificationsComponent;
11 let fixture: ComponentFixture<NotificationsComponent>;
13 const fakeService = new NotificationService(null, null);
17 TestBed.configureTestingModule({
18 imports: [PopoverModule.forRoot(), SharedModule],
19 declarations: [NotificationsComponent],
20 providers: [{ provide: NotificationService, useValue: fakeService }]
21 }).compileComponents();
26 fixture = TestBed.createComponent(NotificationsComponent);
27 component = fixture.componentInstance;
28 fixture.detectChanges();
31 it('should create', () => {
32 expect(component).toBeTruthy();