You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/segmented/__tests__/index.test.js

12 lines
297 B

import { mount } from '@vue/test-utils';
import Segmented from '../index';
describe('Segmented', () => {
const wrapper = mount({
render() {
return <Segmented></Segmented>;
},
});
const todo = wrapper.get('[options="[1,2,3,4,5]"]');
expect(todo.text()).toBe('segmented');
});