Skip to content

Commit

Permalink
fix: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed May 15, 2023
1 parent f359e21 commit e6b64b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit e6b64b2

Please sign in to comment.