Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Jul 9, 2020
1 parent 9b7e035 commit e33cd2f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test/shadow-utils_test.ts
Expand Up @@ -2,12 +2,12 @@ import {expect} from 'chai';
import * as util from '../index';

customElements.define('level-one', class extends HTMLElement {
constructor() {
public constructor() {
super();
this.attachShadow({mode: 'open'});
}

connectedCallback() {
public connectedCallback(): void {
const child0 = document.createElement('level-two');
const child1 = document.createElement('p');
child1.className = 'level-one-p';
Expand All @@ -16,13 +16,14 @@ customElements.define('level-one', class extends HTMLElement {
this.shadowRoot!.appendChild(child1);
}
});

customElements.define('level-two', class extends HTMLElement {
constructor() {
public constructor() {
super();
this.attachShadow({mode: 'open'});
}

connectedCallback() {
public connectedCallback(): void {
const child0 = document.createElement('p');
child0.className = 'level-two-p';
child0.innerText = 'I am level 2';
Expand Down

0 comments on commit e33cd2f

Please sign in to comment.