mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 00:08:27 +08:00
test: fix CI
This commit is contained in:
parent
9abce572a4
commit
e061ada71a
@ -17,4 +17,14 @@ describe('AutoComplete with Custom Input Element Render', () => {
|
|||||||
// should not filter data source defaultly
|
// should not filter data source defaultly
|
||||||
expect(dropdownWrapper.find('MenuItem').length).toBe(3);
|
expect(dropdownWrapper.find('MenuItem').length).toBe(3);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('child.ref should work', () => {
|
||||||
|
const mockRef = jest.fn();
|
||||||
|
mount(
|
||||||
|
<AutoComplete dataSource={[]}>
|
||||||
|
<input ref={mockRef} />
|
||||||
|
</AutoComplete>
|
||||||
|
);
|
||||||
|
expect(mockRef).toHaveBeenCalled();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import notification from '..';
|
import notification from '..';
|
||||||
|
|
||||||
describe('Notification.placement', () => {
|
describe('Notification.placement', () => {
|
||||||
|
afterEach(() => notification.destroy());
|
||||||
|
|
||||||
function $$(className) {
|
function $$(className) {
|
||||||
return document.body.querySelectorAll(className);
|
return document.body.querySelectorAll(className);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user