test: add WebComponent test
This commit is contained in:
parent
ceda1c0efd
commit
03d4788514
1 changed files with 5 additions and 1 deletions
|
|
@ -4,7 +4,11 @@ import { WebComponent } from '../src/WebComponent.js'
|
||||||
let componentUnderTest
|
let componentUnderTest
|
||||||
|
|
||||||
describe('WebComponent', () => {
|
describe('WebComponent', () => {
|
||||||
// Browsers throw an error when you instantiate a custom element class not in the registry
|
/**
|
||||||
|
* We need to define the custom element because
|
||||||
|
* browsers throw an error when you instantiate
|
||||||
|
* a custom element class that is not in the registry
|
||||||
|
*/
|
||||||
window.customElements.define('component-test', WebComponent)
|
window.customElements.define('component-test', WebComponent)
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue