Fix tests for React 16.

This commit is contained in:
Caleb 2017-10-23 12:03:01 -06:00 committed by Shawn Erquhart
parent 45ebc44c3b
commit daa5395346
4 changed files with 33 additions and 32 deletions

View File

@ -90,8 +90,8 @@
"css-loader": "^0.28.7", "css-loader": "^0.28.7",
"cssnano": "^v4.0.0-rc.2", "cssnano": "^v4.0.0-rc.2",
"deep-equal": "^1.0.1", "deep-equal": "^1.0.1",
"enzyme": "^3.0.0", "enzyme": "^3.1.0",
"enzyme-adapter-react-15": "^1.0.0", "enzyme-adapter-react-16": "^1.0.2",
"eslint": "^3.7.1", "eslint": "^3.7.1",
"eslint-config-netlify": "github:netlify/eslint-config-netlify", "eslint-config-netlify": "github:netlify/eslint-config-netlify",
"eslint-import-resolver-webpack": "^0.8.3", "eslint-import-resolver-webpack": "^0.8.3",
@ -107,7 +107,7 @@
"postcss-cssnext": "^3.0.2", "postcss-cssnext": "^3.0.2",
"postcss-import": "^11.0.0", "postcss-import": "^11.0.0",
"postcss-loader": "^2.0.7", "postcss-loader": "^2.0.7",
"react-test-renderer": "^15.5.0", "react-test-renderer": "^16.0.0",
"style-loader": "^0.18.2", "style-loader": "^0.18.2",
"stylefmt": "^4.3.1", "stylefmt": "^4.3.1",
"stylelint": "^7.9.0", "stylelint": "^7.9.0",

View File

@ -1,4 +1,4 @@
import enzyme from 'enzyme'; import enzyme from 'enzyme';
import enzymeAdapter from 'enzyme-adapter-react-15'; import enzymeAdapter from 'enzyme-adapter-react-16';
enzyme.configure({ adapter: new enzymeAdapter() }); enzyme.configure({ adapter: new enzymeAdapter() });

View File

@ -1,13 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Markdown Preview renderer HTML rendering should render HTML 1`] = `"<div style=\\"margin:15px 2px;\\"><p>Paragraph with <em>inline</em> element</p></div>"`; exports[`Markdown Preview renderer HTML rendering should render HTML 1`] = `"<div style=\\"margin:15px 2px\\"><p>Paragraph with <em>inline</em> element</p></div>"`;
exports[`Markdown Preview renderer Markdown rendering Code should render code 1`] = `"<div style=\\"margin:15px 2px;\\"><p>Use the <code>printf()</code> function.</p></div>"`; exports[`Markdown Preview renderer Markdown rendering Code should render code 1`] = `"<div style=\\"margin:15px 2px\\"><p>Use the <code>printf()</code> function.</p></div>"`;
exports[`Markdown Preview renderer Markdown rendering Code should render code 2 1`] = `"<div style=\\"margin:15px 2px;\\"><p><code>There is a literal backtick (\`) here.</code></p></div>"`; exports[`Markdown Preview renderer Markdown rendering Code should render code 2 1`] = `"<div style=\\"margin:15px 2px\\"><p><code>There is a literal backtick (\`) here.</code></p></div>"`;
exports[`Markdown Preview renderer Markdown rendering General should render markdown 1`] = ` exports[`Markdown Preview renderer Markdown rendering General should render markdown 1`] = `
"<div style=\\"margin:15px 2px;\\"><h1>H1</h1> "<div style=\\"margin:15px 2px\\"><h1>H1</h1>
<p>Text with <strong>bold</strong> &#x26; <em>em</em> elements</p> <p>Text with <strong>bold</strong> &#x26; <em>em</em> elements</p>
<h2>H2</h2> <h2>H2</h2>
<ul> <ul>
@ -28,7 +28,7 @@ exports[`Markdown Preview renderer Markdown rendering General should render mark
`; `;
exports[`Markdown Preview renderer Markdown rendering HTML should render HTML as is when using Markdown 1`] = ` exports[`Markdown Preview renderer Markdown rendering HTML should render HTML as is when using Markdown 1`] = `
"<div style=\\"margin:15px 2px;\\"><h1>Title</h1> "<div style=\\"margin:15px 2px\\"><h1>Title</h1>
<form action=\\"test\\"> <form action=\\"test\\">
<label for=\\"input\\"> <label for=\\"input\\">
<input type=\\"checkbox\\" checked=\\"checked\\" id=\\"input\\"/> My label <input type=\\"checkbox\\" checked=\\"checked\\" id=\\"input\\"/> My label
@ -41,22 +41,22 @@ exports[`Markdown Preview renderer Markdown rendering HTML should render HTML as
<h1 style=\\"display: block; border: 10px solid #f00; width: 100%\\">Test</h1></div>" <h1 style=\\"display: block; border: 10px solid #f00; width: 100%\\">Test</h1></div>"
`; `;
exports[`Markdown Preview renderer Markdown rendering Headings should render Heading 1 1`] = `"<div style=\\"margin:15px 2px;\\"><h1>Title</h1></div>"`; exports[`Markdown Preview renderer Markdown rendering Headings should render Heading 1 1`] = `"<div style=\\"margin:15px 2px\\"><h1>Title</h1></div>"`;
exports[`Markdown Preview renderer Markdown rendering Headings should render Heading 2 1`] = `"<div style=\\"margin:15px 2px;\\"><h2>Title</h2></div>"`; exports[`Markdown Preview renderer Markdown rendering Headings should render Heading 2 1`] = `"<div style=\\"margin:15px 2px\\"><h2>Title</h2></div>"`;
exports[`Markdown Preview renderer Markdown rendering Headings should render Heading 3 1`] = `"<div style=\\"margin:15px 2px;\\"><h3>Title</h3></div>"`; exports[`Markdown Preview renderer Markdown rendering Headings should render Heading 3 1`] = `"<div style=\\"margin:15px 2px\\"><h3>Title</h3></div>"`;
exports[`Markdown Preview renderer Markdown rendering Headings should render Heading 4 1`] = `"<div style=\\"margin:15px 2px;\\"><h4>Title</h4></div>"`; exports[`Markdown Preview renderer Markdown rendering Headings should render Heading 4 1`] = `"<div style=\\"margin:15px 2px\\"><h4>Title</h4></div>"`;
exports[`Markdown Preview renderer Markdown rendering Headings should render Heading 5 1`] = `"<div style=\\"margin:15px 2px;\\"><h5>Title</h5></div>"`; exports[`Markdown Preview renderer Markdown rendering Headings should render Heading 5 1`] = `"<div style=\\"margin:15px 2px\\"><h5>Title</h5></div>"`;
exports[`Markdown Preview renderer Markdown rendering Headings should render Heading 6 1`] = `"<div style=\\"margin:15px 2px;\\"><h6>Title</h6></div>"`; exports[`Markdown Preview renderer Markdown rendering Headings should render Heading 6 1`] = `"<div style=\\"margin:15px 2px\\"><h6>Title</h6></div>"`;
exports[`Markdown Preview renderer Markdown rendering Links should render links 1`] = `"<div style=\\"margin:15px 2px;\\"><p>I get 10 times more traffic from <a href=\\"http://google.com/\\" title=\\"Google\\">Google</a> than from <a href=\\"http://search.yahoo.com/\\" title=\\"Yahoo Search\\">Yahoo</a> or <a href=\\"http://search.msn.com/\\" title=\\"MSN Search\\">MSN</a>.</p></div>"`; exports[`Markdown Preview renderer Markdown rendering Links should render links 1`] = `"<div style=\\"margin:15px 2px\\"><p>I get 10 times more traffic from <a href=\\"http://google.com/\\" title=\\"Google\\">Google</a> than from <a href=\\"http://search.yahoo.com/\\" title=\\"Yahoo Search\\">Yahoo</a> or <a href=\\"http://search.msn.com/\\" title=\\"MSN Search\\">MSN</a>.</p></div>"`;
exports[`Markdown Preview renderer Markdown rendering Lists should render lists 1`] = ` exports[`Markdown Preview renderer Markdown rendering Lists should render lists 1`] = `
"<div style=\\"margin:15px 2px;\\"><ol> "<div style=\\"margin:15px 2px\\"><ol>
<li>ol item 1</li> <li>ol item 1</li>
<li> <li>
<p>ol item 2</p> <p>ol item 2</p>

View File

@ -2672,15 +2672,16 @@ entities@^1.1.1, entities@~1.1.1:
version "1.1.1" version "1.1.1"
resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.1.tgz#6e5c2d0a5621b5dadaecef80b90edfb5cd7772f0" resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.1.tgz#6e5c2d0a5621b5dadaecef80b90edfb5cd7772f0"
enzyme-adapter-react-15@^1.0.0: enzyme-adapter-react-16@^1.0.2:
version "1.0.0" version "1.0.2"
resolved "https://registry.yarnpkg.com/enzyme-adapter-react-15/-/enzyme-adapter-react-15-1.0.0.tgz#2f97f024324c585a6523034d4ba99bd6ca29ce56" resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.0.2.tgz#8c6f431f17c69e1e9eeb25ca4bd92f31971eb2dd"
dependencies: dependencies:
enzyme-adapter-utils "^1.0.0" enzyme-adapter-utils "^1.0.0"
lodash "^4.17.4" lodash "^4.17.4"
object.assign "^4.0.4" object.assign "^4.0.4"
object.values "^1.0.4" object.values "^1.0.4"
prop-types "^15.5.10" prop-types "^15.5.10"
react-test-renderer "^16.0.0-0"
enzyme-adapter-utils@^1.0.0: enzyme-adapter-utils@^1.0.0:
version "1.0.0" version "1.0.0"
@ -2690,9 +2691,9 @@ enzyme-adapter-utils@^1.0.0:
object.assign "^4.0.4" object.assign "^4.0.4"
prop-types "^15.5.10" prop-types "^15.5.10"
enzyme@^3.0.0: enzyme@^3.1.0:
version "3.0.0" version "3.1.0"
resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-3.0.0.tgz#94ce364254dc654c4e619b25eecc644bf6481de7" resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-3.1.0.tgz#d8ca84085790fbcec6ed40badd14478faee4c25a"
dependencies: dependencies:
cheerio "^1.0.0-rc.2" cheerio "^1.0.0-rc.2"
function.prototype.name "^1.0.3" function.prototype.name "^1.0.3"
@ -2703,7 +2704,7 @@ enzyme@^3.0.0:
object.entries "^1.0.4" object.entries "^1.0.4"
object.values "^1.0.4" object.values "^1.0.4"
raf "^3.3.2" raf "^3.3.2"
rst-selector-parser "^2.2.1" rst-selector-parser "^2.2.2"
errno@^0.1.3, errno@^0.1.4: errno@^0.1.3, errno@^0.1.4:
version "0.1.4" version "0.1.4"
@ -7548,12 +7549,12 @@ react-style-proptype@^3.0.0:
dependencies: dependencies:
prop-types "^15.5.4" prop-types "^15.5.4"
react-test-renderer@^15.5.0: react-test-renderer@^16.0.0, react-test-renderer@^16.0.0-0:
version "15.6.2" version "16.0.0"
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-15.6.2.tgz#d0333434fc2c438092696ca770da5ed48037efa8" resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.0.0.tgz#9fe7b8308f2f71f29fc356d4102086f131c9cb15"
dependencies: dependencies:
fbjs "^0.8.9" fbjs "^0.8.16"
object-assign "^4.1.0" object-assign "^4.1.1"
react-themeable@^1.1.0: react-themeable@^1.1.0:
version "1.1.0" version "1.1.0"
@ -8125,9 +8126,9 @@ ripemd160@^2.0.0, ripemd160@^2.0.1:
hash-base "^2.0.0" hash-base "^2.0.0"
inherits "^2.0.1" inherits "^2.0.1"
rst-selector-parser@^2.2.1: rst-selector-parser@^2.2.2:
version "2.2.2" version "2.2.3"
resolved "https://registry.yarnpkg.com/rst-selector-parser/-/rst-selector-parser-2.2.2.tgz#9927b619bd5af8dc23a76c64caef04edf90d2c65" resolved "https://registry.yarnpkg.com/rst-selector-parser/-/rst-selector-parser-2.2.3.tgz#81b230ea2fcc6066c89e3472de794285d9b03d91"
dependencies: dependencies:
lodash.flattendeep "^4.4.0" lodash.flattendeep "^4.4.0"
nearley "^2.7.10" nearley "^2.7.10"