mirror of
https://github.com/LightAir/turbo-rss.git
synced 2026-11-11 23:07:54 +03:00
move from nodeunit to mocha for tests. added npm test to run tests.
This commit is contained in:
1 parent
ca585361c9
commit
18e9422524
4 files changed
+40
-37
No files matched your search
@@ -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