test: Added testcases for Tour Component (#7000)
parent
c5ea668e88
commit
3084ced55f
|
@ -0,0 +1,18 @@
|
|||
import Tour from '..';
|
||||
import mountTest from '../../../tests/shared/mountTest';
|
||||
import { mount } from '@vue/test-utils';
|
||||
|
||||
describe('Tour', () => {
|
||||
mountTest(Tour);
|
||||
|
||||
it('The Tour should render successfully ', function () {
|
||||
const wrapper = mount({
|
||||
setup() {
|
||||
return () => {
|
||||
return <Tour class="Tour" content="Ant Design" />;
|
||||
};
|
||||
},
|
||||
});
|
||||
expect(wrapper.find('.Tour').exists()).toBe(true);
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue