diff --git a/README.md b/README.md index 51b482a..c4f8f53 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,7 @@ const MyModule = () => ( { }]); }); + it('should provide the robots', () => { + const component = shallow( + + ); + + const helmet = component.find('Helmet'); + const { meta } = helmet.props(); + + const robots = meta.find((tag) => tag.name === 'robots'); + + expect(robots).toMatchObject({ + name: 'robots', content: 'index,follow', + }); + }); + it('should render image tags correctly', () => { const component = shallow( 0) { + meta.push({ name: 'robots', content: robots.join(',') }); + } + return (