Add karma for testing (#2)

This commit is contained in:
Justin Fagnani
2019-12-17 18:54:23 -08:00
committed by GitHub
parent 2c090ee06f
commit d50f5a7c7e
8 changed files with 2788 additions and 8 deletions

View File

@@ -15,7 +15,7 @@
import { LitElement, html, customElement, property, css } from 'lit-element';
@customElement('my-element')
class MyElement extends LitElement {
export class MyElement extends LitElement {
static styles = css`
:host {
@@ -36,7 +36,7 @@ class MyElement extends LitElement {
return html`
<h1>Hello, ${this.name}!</h1>
<button @click=${this._onClick}>Click Count: ${this.count}</button>
<div class="slot"><slot></slot></div>
<slot></slot>
`;
}