mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 13:37:52 +08:00
dd31d7775a
* test: migrate part of utils tests * test: migrate part of utils tests * test: migrate part of utils tests
11 lines
352 B
TypeScript
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');
|
|
});
|
|
});
|