Skip to content

Commit

Permalink
Upgrade to React 16.2.0 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
IreneIrene authored and novascreen committed Mar 16, 2018
1 parent 4bae721 commit 8bd86a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
"deploy": "gh-pages -d demo/dist"
},
"peerDependencies": {
"react": "15.x"
"react": "16.x"
},
"devDependencies": {
"gh-pages": "^1.0.0",
"lodash.random": "^3.2.0",
"lodash.range": "^3.2.0",
"nwb": "~0.19.0",
"prop-types": "^15.5.10",
"react": "^15.4.2",
"react-dom": "^15.4.2",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-lorem-image": "^1.3.0"
},
"author": "Thomas Hermann",
Expand Down
18 changes: 9 additions & 9 deletions tests/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ describe('Columns', () => {
<div id="5">5</div>
<div id="6">6</div>
</Columns>
), node, () => {
expect(node.textContent).toContain('123456')
})
), node)

expect(node.textContent).toContain('123456')
})

it('renders into 2 columns with a small first media query', () => {
Expand All @@ -76,9 +76,9 @@ describe('Columns', () => {
<div id="5">5</div>
<div id="6">6</div>
</Columns>
), node, () => {
expect(node.textContent).toContain('135246')
})
), node)

expect(node.textContent).toContain('135246')
})

it('renders into 1 column after changing first media query from small to big', () => {
Expand Down Expand Up @@ -115,8 +115,8 @@ describe('Columns', () => {
}
render((
<UpdateQueries />
), node, () => {
expect(node.textContent).toContain('123456')
})
), node)

expect(node.textContent).toContain('123456')
})
})

0 comments on commit 8bd86a8

Please sign in to comment.