diff --git a/packages/modulizer/src/test/unit/project-converter_test.ts b/packages/modulizer/src/test/unit/project-converter_test.ts
index 0c46e4e50..2a9471a2b 100644
--- a/packages/modulizer/src/test/unit/project-converter_test.ts
+++ b/packages/modulizer/src/test/unit/project-converter_test.ts
@@ -1322,8 +1322,8 @@ export function deepReferenceFn() {
});
assertSources(await convert(), {
'test.js': `
-import { Element } from './dep.js';
-class MyElement extends Element {}
+import { PolymerElement } from './dep.js';
+class MyElement extends PolymerElement {}
`
});
});
@@ -1465,8 +1465,8 @@ export const isDeep = isPath;
}),
{
'test.js': `
-import { Element } from './dep.js';
-class MyElement extends Element {}
+import { PolymerElement } from './dep.js';
+class MyElement extends PolymerElement {}
`
});
});
@@ -1588,13 +1588,13 @@ export const setRootPath = function(path) {
});
assertSources(await convert(), {
'test.js': `
-import { Element } from './polymer.js';
+import { PolymerElement } from './polymer.js';
import { html } from './html-tag.js';
/**
* @customElement
* @polymer
*/
-class TestElement extends Element {
+class TestElement extends PolymerElement {
static get template() {
return html\`
Hi!
@@ -1773,12 +1773,12 @@ export { qux as zug };
assertSources(
await convert({namespaces: [/* No explicit namespaces! */]}), {
'test.js': `
-import { Element as Element$0 } from './polymer.js';
-class Element extends Element$0 {}
+import { PolymerElement } from './polymer.js';
+class Element extends PolymerElement {}
`,
'polymer.js': `
-export const Element = class Element {};
+export const PolymerElement = class Element {};
`
});
});
@@ -1847,7 +1847,7 @@ export const Element = class Element {};
}),
{
'test.js': `
-export const Element = class Element {};
+export const PolymerElement = class Element {};
`,
'index.html': `
@@ -1894,7 +1894,7 @@ export const Element = class Element {};
}),
{
'test.js': `
-export const Element = class Element {};
+export const PolymerElement = class Element {};
`,
'index.html': `
@@ -1926,9 +1926,9 @@ export const Element = class Element {};
});
assertSources(await convert(), {
'test.js': `
-import { Element } from './polymer.js';
-class FooElem extends Element {}
-class BarElem extends Element {}
+import { PolymerElement } from './polymer.js';
+class FooElem extends PolymerElement {}
+class BarElem extends PolymerElement {}
`
});
});
@@ -1955,12 +1955,12 @@ class BarElem extends Element {}
});
assertSources(await convert(), {
'test.js': `
-import { Element } from './polymer.js';
+import { PolymerElement } from './polymer.js';
const $_documentContainer = document.createElement('template');
$_documentContainer.innerHTML = \`Top
Middle
Bottom
\`;
document.head.appendChild($_documentContainer.content);
-class FooElem extends Element {}
-class BarElem extends Element {}
+class FooElem extends PolymerElement {}
+class BarElem extends PolymerElement {}
`
});
});
@@ -1995,18 +1995,18 @@ class BarElem extends Element {}
});
assertSources(await convert(), {
'test.js': `
-import { Element } from './polymer.js';
+import { PolymerElement } from './polymer.js';
const $_documentContainer = document.createElement('template');
$_documentContainer.innerHTML = \`Random footer
\`;
document.head.appendChild($_documentContainer.content);
-customElements.define('foo-elem', class FooElem extends Element {
+customElements.define('foo-elem', class FooElem extends PolymerElement {
static get template() {
return Polymer.html\`
foo-element body
\`;
}
});
-customElements.define('bar-elem', class BarElem extends Element {
+customElements.define('bar-elem', class BarElem extends PolymerElement {
static get template() {
return Polymer.html\`
bar body
@@ -2072,7 +2072,7 @@ import '../lib.js';
});
assertSources(await convert(), {
'polymer.js': `
-export const Element = class Element {};
+export const PolymerElement = class Element {};
`,
'index.html': `
@@ -2080,9 +2080,9 @@ export const Element = class Element {};
This is some html.
`,
});