Skip to content

Commit bb97d1c

Browse files
committed
chore: improve imports for certain tests
1 parent ce38577 commit bb97d1c

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

packages/uui-button-group/lib/uui-button-group.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { html, fixture, expect } from '@open-wc/testing';
22
import { UUIButtonGroupElement } from './uui-button-group.element';
3-
import '.';
3+
import '@umbraco-ui/uui-button/lib';
44

5-
describe('UuiButton', () => {
5+
describe('UuiButtonGroup', () => {
66
let element: UUIButtonGroupElement;
77
beforeEach(async () => {
88
element = await fixture(
@@ -18,6 +18,10 @@ describe('UuiButton', () => {
1818
);
1919
});
2020

21+
it('is defined', () => {
22+
expect(element).to.be.instanceOf(UUIButtonGroupElement);
23+
});
24+
2125
it('renders a slot', () => {
2226
const slot = element.shadowRoot!.querySelector('slot')!;
2327
expect(slot).to.exist;

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import '.';
2-
31
import {
42
elementUpdated,
53
expect,
@@ -35,6 +33,10 @@ describe('UuiButton', () => {
3533
button = element.shadowRoot!.querySelector('button') as any;
3634
});
3735

36+
it('is defined', () => {
37+
expect(element).to.be.instanceOf(UUIButtonElement);
38+
});
39+
3840
it('renders a slot', () => {
3941
const slot = element.shadowRoot!.querySelector('slot')!;
4042
expect(slot).to.exist;

0 commit comments

Comments
 (0)