mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-02-04 03:56:19 +00:00
move from nodeunit to mocha for tests. added npm test to run tests.
This commit is contained in:
13
readme.md
13
readme.md
@@ -6,13 +6,6 @@
|
||||
|
||||
$ npm install rss
|
||||
|
||||
## Tests
|
||||
|
||||
Use [nodeunit](https://github.com/caolan/nodeunit) to run the tests.
|
||||
|
||||
$ npm install nodeunit
|
||||
$ nodeunit test
|
||||
|
||||
## Usage
|
||||
|
||||
var RSS = require('rss');
|
||||
@@ -94,6 +87,12 @@ an have any number of items. Ten to tenty is usually good.
|
||||
* _xml([indent])_ - return the xml. If you pass in true it will use four spaces for indenting. If you prefer
|
||||
tabs use \t instead of true.
|
||||
|
||||
## Tests
|
||||
|
||||
Mocha tests are included. Use `npm test` to run the tests.
|
||||
|
||||
$ npm test
|
||||
|
||||
## Notes
|
||||
* You do not need to escape anything. This module will escape characters when necessary.
|
||||
* This module is very fast but you might as well cache the output of xml() and serve
|
||||
|
||||
Reference in New Issue
Block a user