[ci] format
This commit is contained in:
parent
26bf12ef3c
commit
b0aca3c66a
2 changed files with 9 additions and 6 deletions
|
@ -86,9 +86,12 @@ describe('renderToStaticMarkup', () => {
|
||||||
|
|
||||||
it('should render DSD attributes based on shadowRootOptions', async () => {
|
it('should render DSD attributes based on shadowRootOptions', async () => {
|
||||||
const tagName = 'lit-component';
|
const tagName = 'lit-component';
|
||||||
customElements.define(tagName, class extends LitElement {
|
customElements.define(
|
||||||
|
tagName,
|
||||||
|
class extends LitElement {
|
||||||
static shadowRootOptions = { ...LitElement.shadowRootOptions, delegatesFocus: true };
|
static shadowRootOptions = { ...LitElement.shadowRootOptions, delegatesFocus: true };
|
||||||
});
|
}
|
||||||
|
);
|
||||||
const render = await renderToStaticMarkup(tagName);
|
const render = await renderToStaticMarkup(tagName);
|
||||||
expect(render).to.deep.equal({
|
expect(render).to.deep.equal({
|
||||||
html: `<${tagName}><template shadowroot=\"open\" shadowrootmode=\"open\" shadowrootdelegatesfocus><!--lit-part--><!--/lit-part--></template></${tagName}>`,
|
html: `<${tagName}><template shadowroot=\"open\" shadowrootmode=\"open\" shadowrootdelegatesfocus><!--lit-part--><!--/lit-part--></template></${tagName}>`,
|
||||||
|
|
Loading…
Add table
Reference in a new issue