From c1f97c0b73f8fc7fead0adb43ab7c7d29a456296 Mon Sep 17 00:00:00 2001 From: Lit Robot Date: Tue, 7 Nov 2023 00:24:33 +0000 Subject: [PATCH] Import upstream changes (f06c7b95dcdbaf754dcca2a895040c3a347898de) --- src/test/my-element_test.ts | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/test/my-element_test.ts b/src/test/my-element_test.ts index 3f496b6..ce67090 100644 --- a/src/test/my-element_test.ts +++ b/src/test/my-element_test.ts @@ -7,7 +7,6 @@ import {MyElement} from '../my-element.js'; import {fixture, assert} from '@open-wc/testing'; -import {UncompiledTemplateResult} from 'lit'; import {html} from 'lit/static-html.js'; suite('my-element', () => { @@ -17,9 +16,7 @@ suite('my-element', () => { }); test('renders with default values', async () => { - const el = await fixture( - html`` as UncompiledTemplateResult - ); + const el = await fixture(html``); assert.shadowDom.equal( el, ` @@ -31,9 +28,7 @@ suite('my-element', () => { }); test('renders with a set name', async () => { - const el = await fixture( - html`` as UncompiledTemplateResult - ); + const el = await fixture(html``); assert.shadowDom.equal( el, ` @@ -45,9 +40,7 @@ suite('my-element', () => { }); test('handles a click', async () => { - const el = (await fixture( - html`` as UncompiledTemplateResult - )) as MyElement; + const el = (await fixture(html``)) as MyElement; const button = el.shadowRoot!.querySelector('button')!; button.click(); await el.updateComplete; @@ -62,9 +55,7 @@ suite('my-element', () => { }); test('styling applied', async () => { - const el = (await fixture( - html`` as UncompiledTemplateResult - )) as MyElement; + const el = (await fixture(html``)) as MyElement; await el.updateComplete; assert.equal(getComputedStyle(el).paddingTop, '16px'); });