test: Added testcases for Tour Component (#7000)

pull/7025/head
Nitin Ramnani 2023-10-16 07:16:04 +05:30 committed by GitHub
parent c5ea668e88
commit 3084ced55f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -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);
});
});