Skip to content

Commit bd3c976

Browse files
committed
ensure register tests extend HTMLElement
1 parent 04083bf commit bd3c976

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/register.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ describe('register', () => {
7373

7474
it('automatically drops the `Controller` suffix', () => {
7575
@register
76-
class SecondSuffixController {}
76+
class SecondSuffixController extends HTMLElement {}
7777
expect(window.customElements.get('second-suffix')).to.equal(SecondSuffixController)
7878
})
7979

8080
it('automatically drops the `Component` suffix', () => {
8181
@register
82-
class ThirdSuffixComponent {}
82+
class ThirdSuffixComponent extends HTMLElement {}
8383
expect(window.customElements.get('third-suffix')).to.equal(ThirdSuffixComponent)
8484
})
8585
})

0 commit comments

Comments
 (0)