From e8a975001bc0083cdcab14090aa5e9c58d408c24 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Wed, 21 Aug 2019 11:05:16 +0200
Subject: [PATCH] Update common

---
 packages/auth/src/vpu-auth-demo.js |  2 +-
 packages/auth/src/vpu-auth.js      |  2 +-
 packages/auth/test/unit.js         | 19 +++++++++++++++++++
 packages/auth/vendor/common        |  2 +-
 4 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/packages/auth/src/vpu-auth-demo.js b/packages/auth/src/vpu-auth-demo.js
index 49553319..aa56f6b4 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 e2bdb65e..1960471a 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 2a65be79..b73dd0ee 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 fdcb4c14..8a80921c 160000
--- a/packages/auth/vendor/common
+++ b/packages/auth/vendor/common
@@ -1 +1 @@
-Subproject commit fdcb4c14ef0375b5dc61d48ca4f59bd6c2561708
+Subproject commit 8a80921c5f8ea2b0d1a0a548741d2ca1716a5139
-- 
GitLab