import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';

import { SchemaFormItemComponent } from './schema-form-item.component';
import { SharedModule } from '../../../modules/shared/shared.module';
import { FormsModule } from '@angular/forms';
import { SchemaFormModule } from '../schema-form.module';
import { AltairConfig } from 'altair-graphql-core/build/config';

describe('SchemaFormItemComponent', () => {
  let component: SchemaFormItemComponent;
  let fixture: ComponentFixture<SchemaFormItemComponent>;

  beforeEach(
    waitForAsync(() => {
      TestBed.configureTestingModule({
        imports: [FormsModule, SharedModule, SchemaFormModule],
        declarations: [
          // SchemaFormItemComponent,
        ],
        providers: [
          {
            provide: AltairConfig,
            useValue: new AltairConfig(),
          },
        ],
        teardown: { destroyAfterEach: false },
      }).compileComponents();
    })
  );

  beforeEach(() => {
    fixture = TestBed.createComponent(SchemaFormItemComponent);
    component = fixture.componentInstance;
    component.data = {};
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeTruthy();
  });
});
