1 import { NO_ERRORS_SCHEMA } from '@angular/core';
2 import { 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 { configureTestBed } from '../../../../shared/unit-test-helper';
10 import { OsdScrubModalComponent } from './osd-scrub-modal.component';
12 describe('OsdScrubModalComponent', () => {
13 let component: OsdScrubModalComponent;
14 let fixture: ComponentFixture<OsdScrubModalComponent>;
18 return new Promise(function(resolve, reject) {
22 scrub: (data: any) => {
23 return new Promise(function(resolve, reject) {
27 scrub_many: (data: any) => {
28 return new Promise(function(resolve, reject) {
35 imports: [ReactiveFormsModule],
36 declarations: [OsdScrubModalComponent],
37 schemas: [NO_ERRORS_SCHEMA],
40 { provide: OsdService, useValue: fakeService },
41 { provide: NotificationService, useValue: fakeService }
46 fixture = TestBed.createComponent(OsdScrubModalComponent);
47 component = fixture.componentInstance;
48 fixture.detectChanges();
51 it('should create', () => {
52 expect(component).toBeTruthy();