Skip to content

Commit b45f3ca

Browse files
author
Elson Correia
committed
HtmlTemplate check
1 parent 4f42f5c commit b45f3ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/html.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ import {when, repeat, oneOf, is, element, suspense} from './helpers/index.ts'
55

66
describe('html', () => {
77

8+
it('should render HtmlTemplate', () => {
9+
html`${() => new HtmlTemplate(['Welcome to the test app'], [])}`
10+
.render(document.body)
11+
12+
expect(document.body.innerHTML).toBe('Welcome to the test app')
13+
})
14+
815
it('should render correctly', () => {
916
const app = html`<h1>Todo Manager</h1>
1017
<div class="action-bar">

0 commit comments

Comments
 (0)