Skip to content

Commit

Permalink
docs(readme): Remove obsolete Testing section
Browse files Browse the repository at this point in the history
`make` is no longer part of the project, and `npm test` is so common that it doesn't need to be documented.
  • Loading branch information
fb55 authored May 8, 2021
1 parent 5dfbd35 commit e0c7cbb
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,17 @@ cheerio.html($('.pear'));

By default, `html` will leave some tags open. Sometimes you may instead want to render a valid XML document. For example, you might parse the following XML snippet:

```xml
const $ = cheerio.load('<media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123"/>');
```js
const $ = cheerio.load(
'<media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123"/>'
);
```

... and later want to render to XML. To do this, you can use the 'xml' utility function:

```js
$.xml();
//=> <media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123"/>
//=> <media:thumbnail url="http://www.foo.com/keyframe.jpg" width="75" height="50" time="12:05:01.123"/>
```

You may also render the text content of a Cheerio object using the `text` static method:
Expand Down Expand Up @@ -267,17 +269,6 @@ Cheerio collections are made up of objects that bear some resemblance to [browse

Are you using cheerio in production? Add it to the [wiki](https://github.com/cheeriojs/cheerio/wiki/Cheerio-in-Production)!

## Testing

To run the test suite, download the repository, then within the cheerio directory, run:

```shell
make setup
make test
```

This will download the development packages and run the test suite.

## Sponsors

Does your company use Cheerio in production? Please consider [sponsoring this project](https://github.com/cheeriojs/cheerio?sponsor=1)! Your help will allow maintainers to dedicate more time and resources to its development and support.
Expand Down

0 comments on commit e0c7cbb

Please sign in to comment.