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