From ba8ac919701dcb2ce3a8591ea7b2a174932079cf Mon Sep 17 00:00:00 2001 From: okadurin Date: Mon, 18 Mar 2024 11:27:08 +0100 Subject: [PATCH] fix: type errors for SlotMixin.test.js --- packages/ui/CHANGELOG.md | 1 + packages/ui/components/core/test/SlotMixin.test.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index 380efa6c35..60ca8f7d41 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -7,6 +7,7 @@ - [core] allow SlotRerenderObject to first render on connectedCallback via `firstRenderOnConnected` ### Patch Changes +- [tests] fix type errors for SlotMixin.test.js - [input-tel-dropdown] use ScopedElementsMixin in to run test-suite with select-rich - [core] add Firefox to browserDetection - [overlays] skip local-positioning tests for Firefox, and added a todo to fix later diff --git a/packages/ui/components/core/test/SlotMixin.test.js b/packages/ui/components/core/test/SlotMixin.test.js index fd0719b87c..6e968d7f8a 100644 --- a/packages/ui/components/core/test/SlotMixin.test.js +++ b/packages/ui/components/core/test/SlotMixin.test.js @@ -1,6 +1,5 @@ import sinon from 'sinon'; import { defineCE, expect, fixture, fixtureSync, unsafeStatic, html } from '@open-wc/testing'; -// @ts-expect-error import { ScopedElementsMixin } from '@open-wc/scoped-elements/lit-element.js'; import { SlotMixin } from '@lion/ui/core.js'; import { LitElement } from 'lit'; @@ -516,6 +515,7 @@ describe('SlotMixin', () => { class extends ScopedElementsMixin(SlotMixin(LitElement)) { static get scopedElements() { return { + // @ts-expect-error ...super.scopedElements, 'scoped-elm': ScopedEl, }; @@ -548,10 +548,10 @@ describe('SlotMixin', () => { class ScopedEl extends LitElement {} const tagName = defineCE( - // @ts-expect-error class extends ScopedElementsMixin(SlotMixin(LitElement)) { static get scopedElements() { return { + // @ts-expect-error ...super.scopedElements, 'scoped-el': ScopedEl, };