@chatterton/angular2-schema-form
Version:
Angular2 Schema Form (DISCLAIMER: it is not related to angular-schema-form)
33 lines (24 loc) • 882 B
text/typescript
import { ChangeDetectorRef } from '@angular/core';
import { TestBed } from '@angular/core/testing';
import { WidgetFactory } from './widgetfactory';
import { WidgetRegistry } from './widgetregistry';
import { WidgetChooserComponent } from './widgetchooser.component';
describe('WidgetChooserComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [WidgetChooserComponent],
providers: [
WidgetFactory,
WidgetRegistry,
ChangeDetectorRef
]
});
});
it('should create a widget which contain an instance', () => {
let fixture = TestBed.createComponent(WidgetChooserComponent);
let widgetChooserComponent = fixture.debugElement.componentInstance;
expect(widgetChooserComponent).toBeDefined();
});
xit('should put the widget returned by the factory in the DOM', () => {
});
});