]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
b4043fc427d919d8fc6bd6b760b78beeed148b1b
[ceph.git] /
1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2
3 import { PopoverModule } from 'ngx-bootstrap/popover';
4
5 import { NotificationService } from '../../../shared/services/notification.service';
6 import { NotificationsComponent } from './notifications.component';
7
8 describe('NotificationsComponent', () => {
9   let component: NotificationsComponent;
10   let fixture: ComponentFixture<NotificationsComponent>;
11
12   const fakeService = new NotificationService(null);
13
14   beforeEach(
15     async(() => {
16       TestBed.configureTestingModule({
17         imports: [PopoverModule.forRoot()],
18         declarations: [NotificationsComponent],
19         providers: [{ provide: NotificationService, useValue: fakeService }]
20       }).compileComponents();
21     })
22   );
23
24   beforeEach(() => {
25     fixture = TestBed.createComponent(NotificationsComponent);
26     component = fixture.componentInstance;
27     fixture.detectChanges();
28   });
29
30   it('should create', () => {
31     expect(component).toBeTruthy();
32   });
33 });