mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-25 15:23:45 +00:00
Updates broken JS tests.
This commit is contained in:
parent
ee253d0de5
commit
ec60b02ea0
2 changed files with 17 additions and 7 deletions
|
|
@ -83,8 +83,7 @@ describe('MediaBlock', () => {
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
wrapper
|
wrapper
|
||||||
.find('Portal')
|
.find('Portal > Portal').prop('containerInfo')
|
||||||
.instance().portal
|
|
||||||
).toMatchSnapshot();
|
).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -110,9 +109,8 @@ describe('MediaBlock', () => {
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
wrapper
|
wrapper
|
||||||
.find('Portal')
|
.find('.Tooltip')
|
||||||
.instance()
|
.prop('className')
|
||||||
.portal.querySelector('.Tooltip').className
|
|
||||||
).toBe('Tooltip Tooltip--left');
|
).toBe('Tooltip Tooltip--left');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,15 @@ exports[`Portal #children 1`] = `
|
||||||
}
|
}
|
||||||
onClose={[Function]}
|
onClose={[Function]}
|
||||||
>
|
>
|
||||||
Test!
|
<Portal
|
||||||
|
containerInfo={
|
||||||
|
<div>
|
||||||
|
Test!
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
Test!
|
||||||
|
</Portal>
|
||||||
</Portal>
|
</Portal>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
@ -31,5 +39,9 @@ exports[`Portal empty 1`] = `
|
||||||
</body>
|
</body>
|
||||||
}
|
}
|
||||||
onClose={[Function]}
|
onClose={[Function]}
|
||||||
/>
|
>
|
||||||
|
<Portal
|
||||||
|
containerInfo={<div />}
|
||||||
|
/>
|
||||||
|
</Portal>
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue