test: fix lint

This commit is contained in:
MadCcc 2022-09-14 14:41:20 +08:00
parent 7a73035f82
commit 1a051dcc5e
2 changed files with 3 additions and 1 deletions

View File

@ -94,6 +94,8 @@ export interface ModalFuncProps {
prefixCls?: string;
className?: string;
open?: boolean;
/** @deprecated Please use `open` instead. */
visible?: boolean;
title?: React.ReactNode;
closable?: boolean;
content?: React.ReactNode;

View File

@ -878,7 +878,7 @@ describe('Modal.confirm triggers callbacks correctly', () => {
jest.useFakeTimers();
Modal.confirm({}).update({
visible: true,
open: true,
});
await act(async () => {