Skip to content

Commit

Permalink
[docs] add link to Cheerio API and another example
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisWren committed Jan 3, 2017
1 parent 1a93fa6 commit 0d7e3a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/api/render.md
Expand Up @@ -11,7 +11,7 @@ disservice.

For the purposes of this documentation, we will refer to Cheerio's constructor as
`CheerioWrapper`, which is to say that it is analogous to our `ReactWrapper` and `ShallowWrapper`
constructors.
constructors. [Here](https://github.com/cheeriojs/cheerio#api) is a link to the API available from a `CheerioWrapper` instance.

### Example Usage

Expand All @@ -29,6 +29,11 @@ describe('<Foo />', () => {
const wrapper = render(<Foo title="unique" />);
expect(wrapper.text()).to.contain("unique");
});

it('renders a div', () => {
const wrapper = render(<div className="myClass" />);
expect(wrapper.html()).to.contain("div");
});

});
```

0 comments on commit 0d7e3a9

Please sign in to comment.