We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a11926 commit d7c759dCopy full SHA for d7c759d
1 file changed
test/unit/code-gen/index-test.js
@@ -1,15 +1,14 @@
1
import { expect } from 'chai';
2
3
describe('declaration', () => {
4
-
5
let mod = require('../../../lib/code-gen');
6
7
describe('ElementDeclaration', () => {
8
describe('js', () => {
9
it('returns a custom element declaration', () => {
10
let d = new mod.ElementDeclaration('my-tag');
11
- expect(d.js).to.eql(`import MyTag from 'my-tag';\ncustomElements.define('my-tag', MyTag);`);
+ expect(d.js).to.include(`customElements.define('my-tag', MyTag);`);
12
});
13
14
15
-});
+});
0 commit comments