From f242c2cc444820c9581aded3223c452613fbc5e9 Mon Sep 17 00:00:00 2001 From: goferito Date: Thu, 7 May 2015 10:28:01 +0200 Subject: [PATCH] Fix test --- test/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index 78d9bd1..cd59137 100644 --- a/test/test.js +++ b/test/test.js @@ -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(); }); }); -}); \ No newline at end of file +});