Fix tests and readme, max 15 for news query
This commit is contained in:
parent
1daea459c3
commit
c72b9b03e4
2 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ Bing.web("Pizza", {
|
||||||
#### Composite Search:
|
#### Composite Search:
|
||||||
```js
|
```js
|
||||||
Bing.composite("xbox", {
|
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
|
skip: 3, // Skip first 3 results
|
||||||
sources: "web+news", //Choises are web+image+video+news+spell
|
sources: "web+news", //Choises are web+image+video+news+spell
|
||||||
newssortby: "Date" //Choices are Date, Relevance
|
newssortby: "Date" //Choices are Date, Relevance
|
||||||
|
@ -47,7 +47,7 @@ Bing.composite("xbox", {
|
||||||
#### News Search:
|
#### News Search:
|
||||||
```js
|
```js
|
||||||
Bing.news("xbox", {
|
Bing.news("xbox", {
|
||||||
top: 10, // Number of results (max 50)
|
top: 10, // Number of results (max 15)
|
||||||
skip: 3, // Skip first 3 results
|
skip: 3, // Skip first 3 results
|
||||||
newssortby: "Date", //Choices are: Date, Relevance
|
newssortby: "Date", //Choices are: Date, Relevance
|
||||||
newscategory: "rt_Business" // Choices are:
|
newscategory: "rt_Business" // Choices are:
|
||||||
|
@ -129,3 +129,4 @@ or videos, but may include sexually explicit text.*
|
||||||
|
|
||||||
## License
|
## License
|
||||||
MIT
|
MIT
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,6 @@ describe("Bing News", function () {
|
||||||
|
|
||||||
Bing.news('ps4',
|
Bing.news('ps4',
|
||||||
{
|
{
|
||||||
top: 10,
|
|
||||||
skip: 1,
|
skip: 1,
|
||||||
newsortby: 'Date'
|
newsortby: 'Date'
|
||||||
},
|
},
|
||||||
|
@ -127,7 +126,7 @@ describe("Bing News", function () {
|
||||||
should.exist(res);
|
should.exist(res);
|
||||||
should.exist(body);
|
should.exist(body);
|
||||||
|
|
||||||
body.d.results.should.have.length(10);
|
body.d.results.should.have.length(15);
|
||||||
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue