Updates broken JS tests.

This commit is contained in:
Bertrand Bordage 2019-08-21 18:09:03 +02:00 committed by Matt Westcott
parent ee253d0de5
commit ec60b02ea0
2 changed files with 17 additions and 7 deletions

View file

@ -83,8 +83,7 @@ describe('MediaBlock', () => {
expect(
wrapper
.find('Portal')
.instance().portal
.find('Portal > Portal').prop('containerInfo')
).toMatchSnapshot();
});
@ -110,9 +109,8 @@ describe('MediaBlock', () => {
expect(
wrapper
.find('Portal')
.instance()
.portal.querySelector('.Tooltip').className
.find('.Tooltip')
.prop('className')
).toBe('Tooltip Tooltip--left');
});

View file

@ -14,7 +14,15 @@ exports[`Portal #children 1`] = `
}
onClose={[Function]}
>
Test!
<Portal
containerInfo={
<div>
Test!
</div>
}
>
Test!
</Portal>
</Portal>
`;
@ -31,5 +39,9 @@ exports[`Portal empty 1`] = `
</body>
}
onClose={[Function]}
/>
>
<Portal
containerInfo={<div />}
/>
</Portal>
`;