UNPKG

sn-controls-aurelia

Version:

Aurelia controls for sensenet ECM

15 lines (11 loc) 619 B
import { ComponentTestBase } from '../component-test.base'; import { FieldBaseControl } from '../../src/fieldcontrols'; export class FieldControlBaseTest<T extends FieldBaseControl<any, any>> extends ComponentTestBase<T> { constructor(protected readonly fieldBaseControlType: {new(...args: any[]): T}, private readonly customElementName: string) { super(); } public async createFieldViewModel() { return await this.createAndGetViewModel(`<generic-view><${this.customElementName}></${this.customElementName}></generic-view>`, this.customElementName); } }