From 0d7e3a94f9f1f00a10f1c982cdc3f5c2a337d523 Mon Sep 17 00:00:00 2001 From: Chris Wren Date: Mon, 2 Jan 2017 21:47:19 -0800 Subject: [PATCH] [docs] add link to Cheerio API and another example --- docs/api/render.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/api/render.md b/docs/api/render.md index dab1cf262..1dcd19de6 100644 --- a/docs/api/render.md +++ b/docs/api/render.md @@ -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 @@ -29,6 +29,11 @@ describe('', () => { const wrapper = render(); expect(wrapper.text()).to.contain("unique"); }); + + it('renders a div', () => { + const wrapper = render(
); + expect(wrapper.html()).to.contain("div"); + }); }); ```