Skip to content

Commit

Permalink
test(runtime): add Symbol test
Browse files Browse the repository at this point in the history
  • Loading branch information
Linkontoask committed Nov 12, 2024
1 parent aff3adb commit f2d5604
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/runtime/tests/root.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ test('VNode root', () => {
createInstance(App).render(container)
expect(container.innerHTML).toBe('<span>0</span>')
})

test('Symbol', () => {
const Text1 = Symbol.for('gyron.text')
expect(h('text').type).toBe(Text1)
})

0 comments on commit f2d5604

Please sign in to comment.