This commit is contained in:
goferito 2015-05-07 10:28:01 +02:00
parent 71172c875c
commit f242c2cc44

View file

@ -75,13 +75,13 @@ describe('Bing', function() {
// No actual data on what the failure looks like.
var failure = { message: 'Failed request' };
app.get('/hello/Image', function (req, res) {
res.status(500).send(JSON.stringify(failure));
res.status(500).send(failure);
});
var bingClient = bing({ rootUri: 'http://localhost:'+port+'/hello/', accKey: '123' });
bingClient.images('xbox', function (error, response, body) {
response.statusCode.should.eql(500);
body.should.eql(failure);
body.should.eql(JSON.stringify(failure));
done();
});
});
});
});