Use Web verb instead of Search on integration tests
This commit is contained in:
parent
b39fbf61e2
commit
94c4dc93a3
1 changed files with 4 additions and 4 deletions
|
@ -17,13 +17,13 @@ var Bing = require('../')({ accKey: accKey })
|
||||||
, should = require('should')
|
, should = require('should')
|
||||||
|
|
||||||
|
|
||||||
describe("Bing Search", function () {
|
describe("Bing Web", function () {
|
||||||
|
|
||||||
this.timeout(1000 * 10);
|
this.timeout(1000 * 10);
|
||||||
|
|
||||||
it('works without options', function (done) {
|
it('works without options', function (done) {
|
||||||
|
|
||||||
Bing.search('monkey vs frog', function (err, res, body) {
|
Bing.web('monkey vs frog', function (err, res, body) {
|
||||||
|
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
should.exist(res);
|
should.exist(res);
|
||||||
|
@ -37,7 +37,7 @@ describe("Bing Search", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('finds only 5 results', function (done) {
|
it('finds only 5 results', function (done) {
|
||||||
Bing.search('monkey vs frog',
|
Bing.web('monkey vs frog',
|
||||||
{
|
{
|
||||||
top: 5,
|
top: 5,
|
||||||
market: 'en-US',
|
market: 'en-US',
|
||||||
|
@ -56,7 +56,7 @@ describe("Bing Search", function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('finds ukrainian results', function(done){
|
it('finds ukrainian results', function(done){
|
||||||
Bing.search('"Sony Xperia Z3" огляди тест',
|
Bing.web('"Sony Xperia Z3" огляди тест',
|
||||||
{
|
{
|
||||||
top: 5,
|
top: 5,
|
||||||
skip: 0,
|
skip: 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue