Skip to content

Commit

Permalink
Fix linting and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
perrin4869 committed Mar 10, 2019
1 parent 1e82fa2 commit bef0759
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module.exports = {
"react/forbid-component-props": [0],
"react/jsx-curly-brace-presence": [0],
"no-console": 1,
"no-empty-function": 0,
"no-inner-declarations": 1,
"no-invalid-this": 0,
indent: ["error", 2],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

exports[`ScrollToTop renders 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <ScrollToTop />,
Symbol(enzyme.__renderer__): Object {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
Expand Down Expand Up @@ -40,6 +40,16 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
},
Expand All @@ -48,7 +58,6 @@ ShallowWrapper {

exports[`ScrollToTop renders children 1`] = `
ShallowWrapper {
"length": 1,
Symbol(enzyme.__root__): [Circular],
Symbol(enzyme.__unrendered__): <ScrollToTop>
<UNDEFINED />
Expand All @@ -57,6 +66,7 @@ ShallowWrapper {
"batchedUpdates": [Function],
"getNode": [Function],
"render": [Function],
"simulateError": [Function],
"simulateEvent": [Function],
"unmount": [Function],
},
Expand Down Expand Up @@ -104,6 +114,16 @@ ShallowWrapper {
"adapter": ReactSixteenAdapter {
"options": Object {
"enableComponentDidUpdateOnSetState": true,
"lifecycles": Object {
"componentDidUpdate": Object {
"onSetState": true,
},
"getDerivedStateFromProps": true,
"getSnapshotBeforeUpdate": true,
"setState": Object {
"skipsComponentDidUpdateOnNullish": true,
},
},
},
},
},
Expand Down

0 comments on commit bef0759

Please sign in to comment.