Skip to content

Commit

Permalink
bump packages
Browse files Browse the repository at this point in the history
  • Loading branch information
staylor committed Apr 13, 2020
1 parent 04245e6 commit fdde685
Show file tree
Hide file tree
Showing 7 changed files with 5,279 additions and 8,755 deletions.
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
extends: ['kyt'],

rules: {
'react/static-property-placement': 0,
},

overrides: [
{
files: ['*.test.js'],
rules: {
'react/jsx-props-no-spreading': 0,
},
},
],
};
25 changes: 0 additions & 25 deletions .eslintrc.json

This file was deleted.

19 changes: 9 additions & 10 deletions __tests__/fragment.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment } from 'react';
import React from 'react';
import ReactDOM from 'react-dom';
import { Helmet } from '../src';
import Provider from '../src/Provider';
Expand All @@ -15,9 +15,10 @@ describe('fragments', () => {
it('parses Fragments', () => {
render(
<Helmet>
<Fragment>
<>
<title>Hello</title>
</Fragment>
<meta charSet="utf-8" />
</>
</Helmet>
);

Expand All @@ -27,15 +28,13 @@ describe('fragments', () => {
it('parses nested Fragments', () => {
render(
<Helmet>
<Fragment>
<>
<title>Foo</title>
<Fragment>
<>
<title>Bar</title>
<Fragment>
<title>Baz</title>
</Fragment>
</Fragment>
</Fragment>
<title>Baz</title>
</>
</>
</Helmet>
);

Expand Down
6 changes: 3 additions & 3 deletions __tests__/server/meta.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment } from 'react';
import React from 'react';
import ReactServer from 'react-dom/server';
import { Helmet } from '../../src';
import Provider from '../../src/Provider';
Expand Down Expand Up @@ -52,7 +52,7 @@ describe('server', () => {
expect(meta).toEqual(expect.objectContaining({ type: 'meta' }));
});

const markup = ReactServer.renderToStaticMarkup(<Fragment>{metaComponent}</Fragment>);
const markup = ReactServer.renderToStaticMarkup(metaComponent);

expect(markup).toMatchSnapshot();
});
Expand Down Expand Up @@ -114,7 +114,7 @@ describe('server', () => {
expect(meta).toEqual(expect.objectContaining({ type: 'meta' }));
});

const markup = ReactServer.renderToStaticMarkup(<Fragment>{metaComponent}</Fragment>);
const markup = ReactServer.renderToStaticMarkup(metaComponent);

expect(markup).toMatchSnapshot();
});
Expand Down
Loading

0 comments on commit fdde685

Please sign in to comment.