We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e488e32 commit 77bb544Copy full SHA for 77bb544
test/controller.ts
@@ -27,6 +27,16 @@ describe('controller', () => {
27
expect(instance).to.exist
28
})
29
30
+ it('adds data-catalyst to elements with custom names', async () => {
31
+ @controller('custom-named-element')
32
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
33
+ class CustomNamedElement extends HTMLElement {}
34
+
35
+ instance = await fixture(html`<custom-named-element />`)
36
+ expect(instance.hasAttribute('data-catalyst')).to.equal(true)
37
+ expect(instance.getAttribute('data-catalyst')).to.equal('')
38
+ })
39
40
it('adds data-catalyst to elements', async () => {
41
@controller
42
// eslint-disable-next-line @typescript-eslint/no-unused-vars
0 commit comments