Skip to content

Commit 2280c41

Browse files
committed
fix failing test
1 parent 7a11926 commit 2280c41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/unit/code-gen/index-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('declaration', () => {
88
describe('js', () => {
99
it('returns a custom element declaration', () => {
1010
let d = new mod.ElementDeclaration('my-tag');
11-
expect(d.js).to.eql(`import MyTag from 'my-tag';\ncustomElements.define('my-tag', MyTag);`);
11+
expect(d.js).to.eql(`import MyTag from 'my-tag';\nif(!customElements.get('my-tag')){\ncustomElements.define('my-tag', MyTag);\n}`);
1212
});
1313
});
1414
});

0 commit comments

Comments
 (0)