From c72b9b03e43c402f1d83ab15541cc7f28c0a5cb7 Mon Sep 17 00:00:00 2001 From: goferito Date: Tue, 29 Sep 2015 12:44:05 +0200 Subject: [PATCH] Fix tests and readme, max 15 for news query --- README.md | 5 +++-- test/integration.js | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 725e038..2007271 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Bing.web("Pizza", { #### Composite Search: ```js Bing.composite("xbox", { - top: 10, // Number of results (max 50) + top: 10, // Number of results (max 15 for news, max 50 if other) skip: 3, // Skip first 3 results sources: "web+news", //Choises are web+image+video+news+spell newssortby: "Date" //Choices are Date, Relevance @@ -47,7 +47,7 @@ Bing.composite("xbox", { #### News Search: ```js Bing.news("xbox", { - top: 10, // Number of results (max 50) + top: 10, // Number of results (max 15) skip: 3, // Skip first 3 results newssortby: "Date", //Choices are: Date, Relevance newscategory: "rt_Business" // Choices are: @@ -129,3 +129,4 @@ or videos, but may include sexually explicit text.* ## License MIT + diff --git a/test/integration.js b/test/integration.js index 4f693e4..00ad669 100644 --- a/test/integration.js +++ b/test/integration.js @@ -115,7 +115,6 @@ describe("Bing News", function () { Bing.news('ps4', { - top: 10, skip: 1, newsortby: 'Date' }, @@ -127,7 +126,7 @@ describe("Bing News", function () { should.exist(res); should.exist(body); - body.d.results.should.have.length(10); + body.d.results.should.have.length(15); done(); });