Upgrading to API v5

This commit is contained in:
Francisco Sales 2016-10-31 17:25:49 +00:00
parent d6b6b06a4b
commit 56b2e8b088
4 changed files with 64 additions and 121 deletions

View file

@ -59,7 +59,7 @@ describe('Bing', function () {
it('should cope with valid responses', function (done) {
app.get('/hello/Web', function (req, res) {
app.get('/hello/search', function (req, res) {
res.status(200).send(JSON.stringify(validWebResponse));
});
@ -82,10 +82,10 @@ describe('Bing', function () {
message: 'Failed request'
};
app.get('/hello/Image', function (req, res) {
app.get('/hello/images/search', function (req, res) {
res.status(500).send(failure);
});
var bingClient = bing({
rootUri: 'http://localhost:' + port + '/hello/',
accKey: '123'