UNPKG

@patternfly/elements

Version:
20 lines 893 B
import { expect, html } from '@open-wc/testing'; import { createFixture } from '@patternfly/pfe-tools/test/create-fixture.js'; import { PfTextInput } from '@patternfly/elements/pf-text-input/pf-text-input.js'; describe('<pf-text-input>', function () { describe('simply instantiating', function () { let element; it('imperatively instantiates', function () { expect(document.createElement('pf-text-input')).to.be.an.instanceof(PfTextInput); }); it('should upgrade', async function () { element = await createFixture(html `<pf-text-input></pf-text-input>`); const klass = customElements.get('pf-text-input'); expect(element) .to.be.an.instanceOf(klass) .and .to.be.an.instanceOf(PfTextInput); }); }); }); //# sourceMappingURL=pf-text-input.spec.js.map