src/frontend/packages/kubernetes/src/kubernetes/auth-forms/kubernetes-config-auth-form/kubernetes-config-auth-form.component.spec.ts
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { FormBuilder } from '@angular/forms';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { SharedModule } from './../../../../../core/src/shared/shared.module';
import { KubernetesConfigAuthFormComponent } from './kubernetes-config-auth-form.component';
describe('KubernetesConfigAuthFormComponent', () => {
let component: KubernetesConfigAuthFormComponent;
let fixture: ComponentFixture<KubernetesConfigAuthFormComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [KubernetesConfigAuthFormComponent],
imports: [
SharedModule,
NoopAnimationsModule
]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(KubernetesConfigAuthFormComponent);
component = fixture.componentInstance;
const fb = new FormBuilder();
const form = fb.group({
authValues: fb.group({
kubeconfig: ''
}),
});
component.formGroup = form;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});