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
|
#### Specify Market
|
||||||
Getting spanish results:
|
Getting spanish results:
|
||||||
```js
|
```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);
|
console.log(body);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
@ -135,7 +138,10 @@ Bing.images("Ninja Turtles", {top: 5, market: 'es-ES'}, function(error, res, bod
|
||||||
|
|
||||||
#### Adult Filter
|
#### Adult Filter
|
||||||
```js
|
```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);
|
console.log(body.d.results);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
@ -145,6 +151,13 @@ Accepted values: "Off", "Moderate", "Strict".
|
||||||
or videos, but may include sexually explicit text.*
|
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
|
## License
|
||||||
MIT
|
MIT
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue