ant-design/components/_util/__tests__/transButton.test.js

13 lines
380 B
JavaScript
Raw Normal View History

2020-05-23 15:19:24 +08:00
import { mount } from 'enzyme';
2022-06-22 14:57:09 +08:00
import React from 'react';
2020-05-23 15:19:24 +08:00
import TransButton from '../transButton';
describe('transButton component', () => {
it('disabled should update style', () => {
const wrapper = mount(<TransButton disabled />);
expect(wrapper.find('div').first().props().style).toEqual(
expect.objectContaining({ pointerEvents: 'none' }),
);
});
});