Skip to content

Commit 61a94ff

Browse files
committed
fix(tabs): test error
1 parent 553fa42 commit 61a94ff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/packages/__VUE/tabs/__tests__/index.spec.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ import TabPane from './../../tabpane/index.vue';
44
import { nextTick, reactive } from 'vue';
55
import { JoySmile } from '@nutui/icons-vue';
66
import NutSticky from '../../sticky/index.vue';
7+
import { Dongdong } from '@nutui/icons-vue';
78

89
beforeAll(() => {
910
config.global.components = {
1011
JoySmile,
11-
NutSticky
12+
NutSticky,
13+
Dongdong
1214
};
1315
});
1416

@@ -75,7 +77,8 @@ test('base Tabs Slots', async () => {
7577
const wrapper = mount({
7678
components: {
7779
'nut-tabs': Tabs,
78-
'nut-tab-pane': TabPane
80+
'nut-tab-pane': TabPane,
81+
Dongdong
7982
},
8083
template: `
8184
<nut-tabs v-model="state.tab7value">
@@ -87,7 +90,7 @@ test('base Tabs Slots', async () => {
8790
:key="item.paneKey"
8891
v-for="item in state.list6"
8992
>
90-
<nut-icon v-if="item.icon" :name="item.icon" />
93+
<Dongdong />
9194
<span class="nut-tabs__titles-item__text">{{ item.title }}</span>
9295
<span class="nut-tabs__titles-item__line"></span>
9396
</div>

0 commit comments

Comments
 (0)