Skip to content

Commit

Permalink
ensure register tests extend HTMLElement
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed May 20, 2022
1 parent 36d2a92 commit d01d896
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ describe('register', () => {

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

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

0 comments on commit d01d896

Please sign in to comment.