From 81eabb44b0ef90579dfa8111adc4683acf54bd72 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Fri, 28 Jun 2024 01:52:55 +0200 Subject: [PATCH] fix: remove style=display: block; --- test/cases/components/host/details.mjs | 2 +- test/cases/components/host/host.mjs | 2 +- test/cases/components/host/overlay.mjs | 2 +- test/cases/dom/customcontrol.mjs | 2 +- test/cases/dom/customelement.mjs | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/cases/components/host/details.mjs b/test/cases/components/host/details.mjs index 271c3dd38..d3c64579f 100644 --- a/test/cases/components/host/details.mjs +++ b/test/cases/components/host/details.mjs @@ -55,7 +55,7 @@ describe('Details', function () { try { expect(document.getElementById('mocks')).contain.html( - '<monster-details id="details1" style="display: block;" data-monster-objectlink="Symbol(@schukai/monster/dom/custom-element@@options-updater-link)" data-monster-button-label="Details"></monster-details>') + '<monster-details id="details1" data-monster-objectlink="Symbol(@schukai/monster/dom/custom-element@@options-updater-link)" data-monster-button-label="Details"></monster-details>') } catch (e) { return done(e); } diff --git a/test/cases/components/host/host.mjs b/test/cases/components/host/host.mjs index 94756e452..2d8461b12 100644 --- a/test/cases/components/host/host.mjs +++ b/test/cases/components/host/host.mjs @@ -52,7 +52,7 @@ describe('Host', function () { setTimeout(() => { try { - expect(document.getElementById('mocks')).contain.html('<monster-host style="display: block;" data-monster-objectlink="Symbol(@schukai/monster/dom/custom-element@@options-updater-link)"></monster-host>') + expect(document.getElementById('mocks')).contain.html('<monster-host data-monster-objectlink="Symbol(@schukai/monster/dom/custom-element@@options-updater-link)"></monster-host>') } catch (e) { return done(e); } diff --git a/test/cases/components/host/overlay.mjs b/test/cases/components/host/overlay.mjs index aa70a308b..69200d19b 100644 --- a/test/cases/components/host/overlay.mjs +++ b/test/cases/components/host/overlay.mjs @@ -47,7 +47,7 @@ describe('Overlay', function () { setTimeout(() => { try { expect(document.getElementById('mocks')).contain.html( - ' <monster-overlay style="display: block;" data-monster-objectlink="Symbol(@schukai/monster/dom/custom-element@@options-updater-link)"></monster-overlay>') + ' <monster-overlay data-monster-objectlink="Symbol(@schukai/monster/dom/custom-element@@options-updater-link)"></monster-overlay>') } catch (e) { return done(e); } diff --git a/test/cases/dom/customcontrol.mjs b/test/cases/dom/customcontrol.mjs index 8cf10cd6b..4fd61005c 100644 --- a/test/cases/dom/customcontrol.mjs +++ b/test/cases/dom/customcontrol.mjs @@ -138,7 +138,7 @@ describe('DOM', function () { expect(document.getElementsByTagName('monster-customcontrol').length).is.equal(1); // no data-monster-objectlink="Symbol(monsterUpdater)" because it has nothing to update - expect(document.getElementById('test1')).contain.html('<monster-customcontrol style="display: block;" data-monster-error="Error: html is not set."></monster-customcontrol>') + expect(document.getElementById('test1')).contain.html('<monster-customcontrol data-monster-error="Error: html is not set."></monster-customcontrol>') }); }); diff --git a/test/cases/dom/customelement.mjs b/test/cases/dom/customelement.mjs index 330b6808e..a75060e1b 100644 --- a/test/cases/dom/customelement.mjs +++ b/test/cases/dom/customelement.mjs @@ -242,7 +242,7 @@ describe('DOM', function () { expect(document.getElementsByTagName('monster-testclass').length).is.equal(1); // no data-monster-objectlink="Symbol(monsterUpdater)" because it has nothing to update // but data-monster-error="Error: html is not set." - expect(document.getElementById('test1')).contain.html('<monster-testclass style="display: block;" data-monster-error="Error: html is not set."></monster-testclass>'); + expect(document.getElementById('test1')).contain.html('<monster-testclass data-monster-error="Error: html is not set."></monster-testclass>'); }); }); @@ -256,7 +256,7 @@ describe('DOM', function () { try { expect(document.getElementsByTagName('monster-testclass2').length).is.equal(1); expect(document.getElementsByTagName('monster-testclass2').item(0).shadowRoot.innerHTML).is.equal('<h1></h1><article><p>test</p><div id="container"></div></article>'); - expect(document.getElementById('test1')).contain.html('<monster-testclass2 style="display: block;" data-monster-objectlink="Symbol(' + updaterSymbolKey + ')"></monster-testclass2>'); + expect(document.getElementById('test1')).contain.html('<monster-testclass2 data-monster-objectlink="Symbol(' + updaterSymbolKey + ')"></monster-testclass2>'); return done(); } catch (e) { done(e); -- GitLab