Skip to content

Commit 203feb0

Browse files
committed
✅ Fix unit tests
1 parent 9ece713 commit 203feb0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/lib/src/components/core/lume-chart/lume-chart.spec.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ describe('lume-chart.vue', () => {
2121

2222
const el = wrapper.find('[data-j-lume-chart]');
2323
expect(el.exists()).toBeTruthy();
24-
expect(el.find('[data-j-lume-chart__tooltip]').exists()).toBe(true);
25-
expect(el.find('[data-j-lume-chart__tooltip]').isVisible()).toBe(false);
24+
expect(el.find('[data-j-lume-chart__tooltip]').exists()).toBe(false);
2625
});
2726

2827
test('mounts component with tooltip disabled', () => {

packages/lib/src/components/core/lume-tooltip/lume-tooltip.spec.ts

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const item2 = {
1818
};
1919

2020
const defaultProps = {
21+
opened: true,
2122
targetElement: mockElement,
2223
items: [item1, item2],
2324
};
@@ -111,6 +112,7 @@ describe('tooltip.vue', () => {
111112
props: {
112113
title: 1234,
113114
items: [item1],
115+
opened: true,
114116
targetElement: mockElement,
115117
options: { titleFormat: '~s' },
116118
},
@@ -125,6 +127,7 @@ describe('tooltip.vue', () => {
125127
props: {
126128
title,
127129
items: [item1],
130+
opened: true,
128131
targetElement: mockElement,
129132
options: { titleFormat: (title) => title + '!' },
130133
},

0 commit comments

Comments
 (0)