File tree 1 file changed +6
-3
lines changed
src/packages/__VUE/tabs/__tests__
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ import TabPane from './../../tabpane/index.vue';
4
4
import { nextTick , reactive } from 'vue' ;
5
5
import { JoySmile } from '@nutui/icons-vue' ;
6
6
import NutSticky from '../../sticky/index.vue' ;
7
+ import { Dongdong } from '@nutui/icons-vue' ;
7
8
8
9
beforeAll ( ( ) => {
9
10
config . global . components = {
10
11
JoySmile,
11
- NutSticky
12
+ NutSticky,
13
+ Dongdong
12
14
} ;
13
15
} ) ;
14
16
@@ -75,7 +77,8 @@ test('base Tabs Slots', async () => {
75
77
const wrapper = mount ( {
76
78
components : {
77
79
'nut-tabs' : Tabs ,
78
- 'nut-tab-pane' : TabPane
80
+ 'nut-tab-pane' : TabPane ,
81
+ Dongdong
79
82
} ,
80
83
template : `
81
84
<nut-tabs v-model="state.tab7value">
@@ -87,7 +90,7 @@ test('base Tabs Slots', async () => {
87
90
:key="item.paneKey"
88
91
v-for="item in state.list6"
89
92
>
90
- <nut-icon v-if="item.icon" :name="item.icon" />
93
+ <Dongdong />
91
94
<span class="nut-tabs__titles-item__text">{{ item.title }}</span>
92
95
<span class="nut-tabs__titles-item__line"></span>
93
96
</div>
You can’t perform that action at this time.
0 commit comments