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( 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');
}); });

View file

@ -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>
`; `;