Skip to content

Commit c91e22b

Browse files
committed
add is defined tests for uui-key and uui-keyboard-shortcut
1 parent 8b1ef28 commit c91e22b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/uui-keyboard-shortcut/lib/uui-keyboard-shortcut.test.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
import { html, fixture, expect } from '@open-wc/testing';
22
import { UUIKeyboardShortcutElement } from './uui-keyboard-shortcut.element';
3+
import { UUIKeyElement } from './uui-key.element';
34
import '.';
45

56
describe('UUIKey', () => {
6-
let element: UUIKeyboardShortcutElement;
7+
let element: UUIKeyElement;
78
beforeEach(async () => {
89
element = await fixture(html`<uui-key>z</uui-key> `);
910
});
1011

12+
it('is defined', () => {
13+
expect(element).to.be.instanceOf(UUIKeyElement);
14+
});
15+
1116
it('passes the a11y audit', async () => {
1217
await expect(element).shadowDom.to.be.accessible();
1318
});
@@ -29,6 +34,10 @@ describe('UUIKeyboardShortcut', () => {
2934
`);
3035
});
3136

37+
it('is defined', () => {
38+
expect(element).to.be.instanceOf(UUIKeyboardShortcutElement);
39+
});
40+
3241
it('passes the a11y audit', async () => {
3342
await expect(element).shadowDom.to.be.accessible();
3443
});

0 commit comments

Comments
 (0)