ant-design-vue/components/segmented/__tests__/index.test.js

12 lines
297 B
JavaScript
Raw Normal View History

2023-02-18 08:16:44 +00:00
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');
});