Skip to content

Commit

Permalink
Update readme with proper usage
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Jun 5, 2018
1 parent 3713f55 commit 6a4ac28
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,17 @@ $ npm install --save-dev bs-react-testing-library
open Jest;
describe("Component", () => {
open ExpectJs;
open Expect;
test("renders", () => {
let component = ReactShallowRenderer.renderWithRenderer(<Component />);
expect(Js.Undefined.return(component)) |> toBeDefined;
(
<div style=ReactDOMRe.Style.make(~color="rebeccapurple", ())>
<h1> {ReasonReact.string("Heading")} </h1>
</div>
)
|> render
|> expect
|> toMatchSnapshot;
});
});
```
Expand Down

0 comments on commit 6a4ac28

Please sign in to comment.