Skip to content

Commit

Permalink
Merge pull request #2223 from ing-bank/fix/types
Browse files Browse the repository at this point in the history
fix: type errors for SlotMixin.test.js
  • Loading branch information
okadurin authored Mar 18, 2024
2 parents e4e6159 + ba8ac91 commit fe61687
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/components/core/test/SlotMixin.test.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -516,6 +515,7 @@ describe('SlotMixin', () => {
class extends ScopedElementsMixin(SlotMixin(LitElement)) {
static get scopedElements() {
return {
// @ts-expect-error
...super.scopedElements,
'scoped-elm': ScopedEl,
};
Expand Down Expand Up @@ -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,
};
Expand Down

0 comments on commit fe61687

Please sign in to comment.