From a9b96204eb675b72e7cb2747312a973582da1bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Fri, 28 Oct 2022 11:03:30 +0200 Subject: [PATCH] Block ID is not an integer but UUID --- components/block/spec.js | 10 +++++----- dev/ngl-block.html | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/block/spec.js b/components/block/spec.js index 60c9ab4..84d0131 100644 --- a/components/block/spec.js +++ b/components/block/spec.js @@ -47,7 +47,7 @@ describe('ngl-block', () => { }, }); - const element = await fixture(html``); + const element = await fixture(html``); assert.shadowDom.equal( element, @@ -75,7 +75,7 @@ describe('ngl-block', () => { }, }); - const element = await fixture(html``); + const element = await fixture(html``); assert.shadowDom.equal( element, @@ -102,7 +102,7 @@ describe('ngl-block', () => { }, }); - const element = await fixture(html``); + const element = await fixture(html``); assert.shadowDom.equal( element, @@ -132,12 +132,12 @@ describe('ngl-block', () => { }, }); - const element = await fixture(html``); + const element = await fixture(html``); // Here we stub method fetch to return our test HTML sinon .stub(element, 'fetch') - .resolves('Hello world'); + .resolves('Hello world'); await element.refresh(); diff --git a/dev/ngl-block.html b/dev/ngl-block.html index 407aa87..e7f8fb6 100644 --- a/dev/ngl-block.html +++ b/dev/ngl-block.html @@ -27,7 +27,7 @@

Demos

- +

This is inner content of block 1

@@ -47,7 +47,7 @@

This is inner content of block 1

- +

This is inner content of block 2