Some checks failed
bangararaju.kottedi.in/portfolio-admin/pipeline/head There was a failure building this commit
29 lines
940 B
TypeScript
29 lines
940 B
TypeScript
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
import { provideHttpClientTesting } from '@angular/common/http/testing';
|
|
|
|
import { DynamicPopupComponent } from './dynamic-popup';
|
|
import { DynamicFormConfig } from '../dynamic-form/dynamic-form-config';
|
|
|
|
describe('DynamicPopupComponent', () => {
|
|
let component: DynamicPopupComponent;
|
|
let fixture: ComponentFixture<DynamicPopupComponent >;
|
|
|
|
beforeEach(async () => {
|
|
await TestBed.configureTestingModule({
|
|
imports: [DynamicPopupComponent],
|
|
providers: [provideHttpClientTesting()]
|
|
})
|
|
.compileComponents();
|
|
|
|
fixture = TestBed.createComponent(DynamicPopupComponent);
|
|
component = fixture.componentInstance;
|
|
component.config = { title: 'Test', submitLabel: 'Save', fields: [] } as DynamicFormConfig;
|
|
component.data = {};
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|