diff --git a/packages/auth/src/vpu-auth-demo.js b/packages/auth/src/vpu-auth-demo.js index 49553319b9fce2fc8987c707a28639746f315dcd..aa56f6b4af26b514ebba1ff1d2b917bf6afd5040 100644 --- a/packages/auth/src/vpu-auth-demo.js +++ b/packages/auth/src/vpu-auth-demo.js @@ -1,7 +1,7 @@ import {i18n} from './i18n.js'; import {html, LitElement} from 'lit-element'; import './vpu-auth'; -import commonUtils from 'vpu-common/utils'; +import * as commonUtils from 'vpu-common/utils'; class AuthDemo extends LitElement { constructor() { diff --git a/packages/auth/src/vpu-auth.js b/packages/auth/src/vpu-auth.js index e2bdb65e9920741b32da1088cb09d6f83692d7bc..1960471af2de021213a4e127213edc6493e7d805 100644 --- a/packages/auth/src/vpu-auth.js +++ b/packages/auth/src/vpu-auth.js @@ -1,7 +1,7 @@ import {i18n} from './i18n.js'; import {html, LitElement} from 'lit-element'; import JSONLD from 'vpu-common/jsonld' -import commonUtils from 'vpu-common/utils'; +import * as commonUtils from 'vpu-common/utils'; /** * Keycloak auth web component diff --git a/packages/auth/test/unit.js b/packages/auth/test/unit.js index 2a65be7966860991ac552d22dd5a707adef40937..b73dd0ee0f682875e7d05a06438fe1ebc2f76426 100644 --- a/packages/auth/test/unit.js +++ b/packages/auth/test/unit.js @@ -1,4 +1,5 @@ import '../src/vpu-auth'; +import '../src/vpu-auth-demo'; describe('vpu-auth basics', () => { let node; @@ -17,3 +18,21 @@ describe('vpu-auth basics', () => { expect(node).to.have.property('shadowRoot'); }); }); + +describe('vpu-auth-demo basics', () => { + let node; + + beforeEach(async () => { + node = document.createElement('vpu-auth-demo'); + document.body.appendChild(node); + await node.updateComplete; + }); + + afterEach(() => { + node.remove(); + }); + + it('should render', () => { + expect(node).to.have.property('shadowRoot'); + }); +}); diff --git a/packages/auth/vendor/common b/packages/auth/vendor/common index fdcb4c14ef0375b5dc61d48ca4f59bd6c2561708..8a80921c5f8ea2b0d1a0a548741d2ca1716a5139 160000 --- a/packages/auth/vendor/common +++ b/packages/auth/vendor/common @@ -1 +1 @@ -Subproject commit fdcb4c14ef0375b5dc61d48ca4f59bd6c2561708 +Subproject commit 8a80921c5f8ea2b0d1a0a548741d2ca1716a5139