From 2d399e4d4fa26efd20554bc7937895ad0dc0fdb4 Mon Sep 17 00:00:00 2001 From: goferito Date: Mon, 16 Nov 2015 21:05:22 +0100 Subject: [PATCH] Readme Test section. Small Readme formatting --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index abd7182..a2cd720 100644 --- a/README.md +++ b/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