UNPKG

fonteva-design-guide

Version:

## Dev, Build and Test

28 lines (21 loc) 815 B
import { createElement } from 'lwc'; import SUBHEADER from 'c/pfmSubheader'; describe('c-pfm-subheader', () => { afterEach(() => { // The jsdom instance is shared across test cases in a single file so reset the DOM while (document.body.firstChild) { document.body.removeChild(document.body.firstChild); } }); it('render type: progress bar', () => { const element = createElement('c-pfm-subheader', { is: SUBHEADER }); document.body.appendChild(element); // Verify icon position const subheader = element.shadowRoot.querySelector('.pfm-subheader_progress'); // return Promise.resolve().then(() => { // expect(subheader).not.toBeNull(); // }); }); });