Fix test
This commit is contained in:
parent
71172c875c
commit
f242c2cc44
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue