1 import { NO_ERRORS_SCHEMA } from '@angular/core';
2 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3 import { ReactiveFormsModule } from '@angular/forms';
5 import { BsModalRef } from 'ngx-bootstrap';
7 import { OsdService } from '../../../../shared/api/osd.service';
8 import { NotificationService } from '../../../../shared/services/notification.service';
9 import { OsdScrubModalComponent } from './osd-scrub-modal.component';
11 describe('OsdScrubModalComponent', () => {
12 let component: OsdScrubModalComponent;
13 let fixture: ComponentFixture<OsdScrubModalComponent>;
17 return new Promise(function(resolve, reject) {
21 scrub: (data: any) => {
22 return new Promise(function(resolve, reject) {
26 scrub_many: (data: any) => {
27 return new Promise(function(resolve, reject) {
33 beforeEach(async(() => {
34 TestBed.configureTestingModule({
35 imports: [ReactiveFormsModule],
36 declarations: [OsdScrubModalComponent],
37 schemas: [NO_ERRORS_SCHEMA],
40 { provide: OsdService, useValue: fakeService },
41 { provide: NotificationService, useValue: fakeService }
43 }).compileComponents();
47 fixture = TestBed.createComponent(OsdScrubModalComponent);
48 component = fixture.componentInstance;
49 fixture.detectChanges();
52 it('should create', () => {
53 expect(component).toBeTruthy();