mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 09:21:22 +08:00
13 lines
380 B
JavaScript
13 lines
380 B
JavaScript
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
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' }),
|
|
);
|
|
});
|
|
});
|