We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 010554f commit eab4015Copy full SHA for eab4015
1 file changed
test/attr.js
@@ -187,6 +187,14 @@ describe('attr', () => {
187
expect(instance.getAttribute('data-bar')).to.equal('hello')
188
expect(instance.getAttribute('data-baz')).to.equal('world')
189
})
190
+
191
+ it('can be initialized multiple times without error', () => {
192
+ const instance = document.createElement('initialize-attr-test-element')
193
+ expect(instance).to.not.have.ownPropertyDescriptor('foo')
194
+ initializeAttrs(instance, ['foo'])
195
+ expect(instance).to.have.ownPropertyDescriptor('foo')
196
197
+ })
198
199
200
describe('defineObservedAttributes', () => {
0 commit comments