From e6b64b229425c8aeaf1d0c41147ee42a31033dbf Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Mon, 15 May 2023 13:42:42 +0300 Subject: [PATCH] fix: update tests --- test/context.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/context.test.ts b/test/context.test.ts index 024fc3c..5ae22d6 100644 --- a/test/context.test.ts +++ b/test/context.test.ts @@ -89,11 +89,11 @@ describe('context', function() { customElements.define(testTag, component(Tests)); function getResults(selector: string) { - return [...document.querySelector('context-tests').shadowRoot.querySelectorAll(selector)].map(consumer => contexts.get(consumer)); + return [...document.querySelector('context-tests').querySelectorAll(selector)].map(consumer => contexts.get(consumer)); } function getContentResults(selector: string) { - return [...document.querySelector('context-tests').shadowRoot.querySelectorAll(selector)].map((consumer) => (consumer).shadowRoot.textContent); + return [...document.querySelector('context-tests').querySelectorAll(selector)].map((consumer) => (consumer).textContent); } beforeEach(async () => {