move from nodeunit to mocha for tests. added npm test to run tests.

This commit is contained in:
Dylan Greene
2013-09-14 15:12:40 -04:00
parent ca585361c9
commit 18e9422524
4 changed files with 40 additions and 37 deletions

View File

@@ -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