mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
30 lines
628 B
JavaScript
30 lines
628 B
JavaScript
import { mount } from '../../../test/utils';
|
|
import Steps from '..';
|
|
import Step from '../../step';
|
|
|
|
test('icon slot', () => {
|
|
const wrapper = mount({
|
|
template: `
|
|
<steps :active="1">
|
|
<step>
|
|
<template v-slot:inactive-icon>Custim Inactive Icon</template>
|
|
A
|
|
</step>
|
|
<step>
|
|
<template v-slot:active-icon>Custim Active Icon</template>
|
|
B
|
|
</step>
|
|
<step>
|
|
<template v-slot:inactive-icon>Custim Inactive Icon</template>
|
|
C
|
|
</step>
|
|
</steps>
|
|
`,
|
|
components: {
|
|
Steps,
|
|
Step
|
|
}
|
|
});
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|