added null filter
This commit is contained in:
@ -1,24 +1,32 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { DocumentationComponent } from './documentation.component';
|
||||
import {RbUiComponentsModule} from '@inst-iot/bosch-angular-ui-components';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {RbCustomInputsModule} from '../rb-custom-inputs/rb-custom-inputs.module';
|
||||
import {ApiService} from '../services/api.service';
|
||||
|
||||
// TODO
|
||||
|
||||
let apiServiceSpy: jasmine.SpyObj<ApiService>;
|
||||
|
||||
describe('DocumentationComponent', () => {
|
||||
let component: DocumentationComponent;
|
||||
let fixture: ComponentFixture<DocumentationComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
const apiSpy = jasmine.createSpyObj('ApiService', ['post', 'put']);
|
||||
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ DocumentationComponent ],
|
||||
imports: [
|
||||
RbCustomInputsModule
|
||||
],
|
||||
providers: [
|
||||
{provide: ApiService, useValue: apiSpy}
|
||||
]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
apiServiceSpy = TestBed.inject(ApiService) as jasmine.SpyObj<ApiService>;
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
|
Reference in New Issue
Block a user