Readme Test section. Small Readme formatting
This commit is contained in:
parent
94c4dc93a3
commit
2d399e4d4f
1 changed files with 15 additions and 2 deletions
17
README.md
17
README.md
|
@ -126,7 +126,10 @@ Bing.spelling('awsome spell', function (err, res, body) {
|
|||
#### Specify Market
|
||||
Getting spanish results:
|
||||
```js
|
||||
Bing.images("Ninja Turtles", {top: 5, market: 'es-ES'}, function(error, res, body){
|
||||
Bing.images("Ninja Turtles"
|
||||
, {top: 5, market: 'es-ES'}
|
||||
, function(error, res, body){
|
||||
|
||||
console.log(body);
|
||||
});
|
||||
```
|
||||
|
@ -135,7 +138,10 @@ Bing.images("Ninja Turtles", {top: 5, market: 'es-ES'}, function(error, res, bod
|
|||
|
||||
#### Adult Filter
|
||||
```js
|
||||
Bing.images('Kim Kardashian', {market: 'en-US', adult: 'Strict'}, function(error, res, body){
|
||||
Bing.images('Kim Kardashian'
|
||||
, {market: 'en-US', adult: 'Strict'}
|
||||
, function(error, res, body){
|
||||
|
||||
console.log(body.d.results);
|
||||
});
|
||||
```
|
||||
|
@ -145,6 +151,13 @@ Accepted values: "Off", "Moderate", "Strict".
|
|||
or videos, but may include sexually explicit text.*
|
||||
|
||||
|
||||
## Running Tests
|
||||
In order to run the tests, the integration tests require to create a `secrets.js` file
|
||||
from the provided `secrets.js.example` example, and fill it in with a valid access key.
|
||||
|
||||
Then just `mocha`.
|
||||
|
||||
|
||||
## License
|
||||
MIT
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue