Skip to content

Commit 99f7adf

Browse files
committed
fix tests
1 parent 2843a5f commit 99f7adf

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

packages/uui-combobox/lib/uui-combobox.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import '@umbraco-ui/uui-icon/lib';
1313
import '@umbraco-ui/uui-button/lib';
1414
import '@umbraco-ui/uui-scroll-container/lib';
1515
import '@umbraco-ui/uui-input/lib';
16+
import '@umbraco-ui/uui-popover/lib';
1617

1718
describe('UUIComboboxElement', () => {
1819
let element: UUIComboboxElement;

packages/uui-table/lib/uui-table-row.test.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import '.';
2-
31
import {
42
elementUpdated,
53
expect,
@@ -8,12 +6,12 @@ import {
86
oneEvent,
97
} from '@open-wc/testing';
108

9+
import './uui-table.element';
1110
import { UUITableRowElement } from './uui-table-row.element';
12-
import { UUITableElement } from './uui-table.element';
1311

1412
describe('UuiTableRow', () => {
1513
let element: UUITableRowElement;
16-
let tableElement: UUITableElement;
14+
let tableElement: HTMLElement;
1715

1816
beforeEach(async () => {
1917
element = await fixture(
@@ -29,8 +27,8 @@ describe('UuiTableRow', () => {
2927
tableElement = await fixture(html` <uui-table> ${element} </uui-table> `);
3028
});
3129

32-
it('passes the a11y audit', done => {
33-
expect(tableElement).shadowDom.to.be.accessible({ done });
30+
it('passes the a11y audit', async () => {
31+
await expect(tableElement).shadowDom.to.be.accessible();
3432
});
3533

3634
it('is defined as its own instance', () => {

packages/uui-table/lib/uui-table.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe('UuiTable', () => {
7070
expect(row.selected).to.be.false;
7171
});
7272

73-
it('passes the a11y audit', done => {
74-
expect(table).shadowDom.to.be.accessible({ done });
73+
it('passes the a11y audit', async () => {
74+
await expect(table).shadowDom.to.be.accessible();
7575
});
7676
});

0 commit comments

Comments
 (0)