mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
test(affix): fix query selector error (#37414)
This commit is contained in:
parent
175e0d1ff4
commit
df98cbb3e9
@ -141,7 +141,7 @@ describe('Affix Render', () => {
|
||||
describe('updatePosition when target changed', () => {
|
||||
it('function change', async () => {
|
||||
document.body.innerHTML = '<div id="mounter" />';
|
||||
const container = document.querySelector('#id') as HTMLDivElement;
|
||||
const container = document.getElementById('mounter');
|
||||
const getTarget = () => container;
|
||||
let affixInstance: InternalAffixClass;
|
||||
const { rerender } = render(
|
||||
|
Loading…
Reference in New Issue
Block a user