Skip to content

Commit 3084ced

Browse files
authored
test: Added testcases for Tour Component (#7000)
1 parent c5ea668 commit 3084ced

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import Tour from '..';
2+
import mountTest from '../../../tests/shared/mountTest';
3+
import { mount } from '@vue/test-utils';
4+
5+
describe('Tour', () => {
6+
mountTest(Tour);
7+
8+
it('The Tour should render successfully ', function () {
9+
const wrapper = mount({
10+
setup() {
11+
return () => {
12+
return <Tour class="Tour" content="Ant Design" />;
13+
};
14+
},
15+
});
16+
expect(wrapper.find('.Tour').exists()).toBe(true);
17+
});
18+
});

0 commit comments

Comments
 (0)