mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
12 lines
353 B
TypeScript
12 lines
353 B
TypeScript
import React from 'react';
|
|
|
|
import { render } from '../../../tests/utils';
|
|
import TransButton from '../transButton';
|
|
|
|
describe('transButton component', () => {
|
|
it('disabled should update style', () => {
|
|
const { container } = render(<TransButton disabled />);
|
|
expect(container.querySelector('div')?.style.pointerEvents).toBe('none');
|
|
});
|
|
});
|