Comparing version 0.9.8 to 0.9.9
@@ -9,3 +9,3 @@ { | ||
"description": "The newsQuery NPM package provides a library to interact with the BBC News Labs Juicer API", | ||
"version": "0.9.8", | ||
"version": "0.9.9", | ||
"main": "./lib/newsquery.js", | ||
@@ -12,0 +12,0 @@ "keywords": [ |
@@ -459,1 +459,13 @@ #newsQuery - Access the BBC News Labs Juicer API | ||
Note that the formats of the responses may differ if using the raw APIs, this module attempts to simplify them to make them easier to consume. | ||
## Contributing | ||
Pull requests, feature requests and bug reports are welcome! | ||
### Running tests | ||
To run tests you can `npm test` but you'll need to set the *NEWSQUERY_API_KEY* environment variable to a valid API key. | ||
Example of how to invoke tests: | ||
> NEWSQUERY_API_KEY="insert-your-api-key-here" npm test |
@@ -0,1 +1,11 @@ | ||
/* | ||
* This test is named with an underscore so it's run first. | ||
* | ||
* You'll neet to set NEWSQUERY_API_KEY environment variable to run these tests. | ||
* You can then run them with `npm test`. | ||
* | ||
* Example usage: | ||
* > NEWSQUERY_API_KEY="insert-your-api-key-here" npm test | ||
*/ | ||
var assert = require("assert"); | ||
@@ -2,0 +12,0 @@ |
@@ -8,3 +8,3 @@ var assert = require("assert"); | ||
// Even allowing for 10 seconds it still often fails if it isn't cached! | ||
this.timeout(10000); | ||
this.timeout(20000); | ||
var response = { }; | ||
@@ -11,0 +11,0 @@ |
138308
4344
471