ant-design/components/_util/__tests__/transButton.test.tsx
lijianan dd31d7775a
test: migrate part of utils tests (#37155)
* test: migrate part of utils tests

* test: migrate part of utils tests

* test: migrate part of utils tests
2022-08-21 23:25:00 +08:00

11 lines
352 B
TypeScript

import React from 'react';
import TransButton from '../transButton';
import { render } from '../../../tests/utils';
describe('transButton component', () => {
it('disabled should update style', () => {
const { container } = render(<TransButton disabled />);
expect(container.querySelector('div')?.style.pointerEvents).toBe('none');
});
});