chore: Update Popconfirm & Modal okType type (#23867)
* chore: Update Popconfirm & Modal okType type * add test case * update test casepull/23868/head
parent
b9e7d853a4
commit
dff19af744
@ -0,0 +1,10 @@
|
||||
import * as React from 'react';
|
||||
import Modal from '..';
|
||||
|
||||
describe('Modal.typescript', () => {
|
||||
it('Modal.okType', () => {
|
||||
const form = <Modal okType="danger" />;
|
||||
|
||||
expect(form).toBeTruthy();
|
||||
});
|
||||
});
|
@ -0,0 +1,10 @@
|
||||
import * as React from 'react';
|
||||
import Popconfirm from '..';
|
||||
|
||||
describe('Popconfirm.typescript', () => {
|
||||
it('Popconfirm.okType', () => {
|
||||
const form = <Popconfirm title="" okType="danger" />;
|
||||
|
||||
expect(form).toBeTruthy();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue