Skip to content

Commit

Permalink
Upgrade react-test-renderer (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
relekang authored and wyze committed Dec 14, 2017
1 parent 131a7c5 commit 7e74046
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 131 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"version": "write-changelog"
},
"dependencies": {
"react-test-renderer": "^15.6.2"
"react-test-renderer": "^16.2.0"
},
"peerDependencies": {
"reason-react": "^0.3.0 || ^0.2.0"
Expand All @@ -35,8 +35,8 @@
"bs-platform": "^2.1.0",
"jest": "^21.2.1",
"npm-run-all": "^4.0.2",
"react": "^15.6.2",
"react-dom": "^15.6.2",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"reason-react": "^0.3.0",
"rimraf": "^2.6.1",
"write-changelog": "^1.1.0"
Expand Down
11 changes: 10 additions & 1 deletion src/__tests__/ReactTestRenderer_test.re
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ describe("reactTestRenderer", () => {
test("create returns ReactTestInstance", () => {
let component = ReactTestRenderer.create(<Tester />);

expect(toObject(component)) |> toContainProperties([| "_component" |]);
expect(toObject(component)) |> toContainProperties(
[|
"root",
"toJSON",
"toTree",
"update",
"unmount",
"getInstance"
|]
);
});

test("toJSON returns test rendered JSON", () => {
Expand Down
Loading

0 comments on commit 7e74046

Please sign in to comment.