/* eslint-env mocha */ /* eslint-disable class-methods-use-this, no-underscore-dangle, max-len */ import { expect, fixture, defineCE } from '@open-wc/testing'; import { LionField } from '../src/LionField.js'; import { FieldCustomMixin } from '../src/FieldCustomMixin.js'; describe('FieldCustomMixin', () => { const inputSlot = ''; let elem; before(async () => { const FieldCustomMixinClass = class extends FieldCustomMixin(LionField) { static get properties() { return { ...super.properties, modelValue: { type: String, }, }; } }; elem = defineCE(FieldCustomMixinClass); }); it('has the capability to disable help text', async () => { const lionField = await fixture(` <${elem} disable-help-text>${inputSlot} `); expect(lionField.$$slot('help-text')).to.equal(undefined); }); });