]> git.apps.os.sepia.ceph.com Git - ceph.git/blob
b9f13a3f84dce2e2efd281a07f6090df810b69c2
[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 { SharedModule } from '../../../shared/shared.module';
7 import { NotificationsComponent } from './notifications.component';
8
9 describe('NotificationsComponent', () => {
10   let component: NotificationsComponent;
11   let fixture: ComponentFixture<NotificationsComponent>;
12
13   const fakeService = new NotificationService(null, null);
14
15   beforeEach(
16     async(() => {
17       TestBed.configureTestingModule({
18         imports: [PopoverModule.forRoot(), SharedModule],
19         declarations: [NotificationsComponent],
20         providers: [{ provide: NotificationService, useValue: fakeService }]
21       }).compileComponents();
22     })
23   );
24
25   beforeEach(() => {
26     fixture = TestBed.createComponent(NotificationsComponent);
27     component = fixture.componentInstance;
28     fixture.detectChanges();
29   });
30
31   it('should create', () => {
32     expect(component).toBeTruthy();
33   });
34 });