Skip to content

Commit 6b1c723

Browse files
keithamuskoddsson
andcommitted
test: avoid re-defining custom elements in tests
Co-authored-by: Kristján Oddsson <koddsson@gmail.com>
1 parent 999f821 commit 6b1c723

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/bind.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,18 +174,18 @@ describe('bind', () => {
174174

175175
it('will not re-bind elements that just had `bind()` called', async function () {
176176
customElements.define(
177-
'bind-test-not-element',
177+
'bind-test-not-rebind-element',
178178
class BindTestNotController extends HTMLElement {
179179
connectedCallback() {
180180
bind(this)
181181
}
182182
}
183183
)
184-
const instance = document.createElement('bind-test-not-element')
184+
const instance = document.createElement('bind-test-not-rebind-element')
185185
chai.spy.on(instance, 'foo')
186186
listenForBind(root)
187187
const button = document.createElement('button')
188-
button.setAttribute('data-action', 'click:bind-test-not-element#foo')
188+
button.setAttribute('data-action', 'click:bind-test-not-rebind-element#foo')
189189
instance.appendChild(button)
190190
root.appendChild(instance)
191191
// wait for processQueue

0 commit comments

Comments
 (0)