From 63d41e48436ba7c4e1c42dbbb901b18411474a9e Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 5 Aug 2014 00:57:09 +0200 Subject: [PATCH] CDB-3255 More secure test --- test/acceptance/app.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/acceptance/app.test.js b/test/acceptance/app.test.js index f40a17de..0d9155c6 100644 --- a/test/acceptance/app.test.js +++ b/test/acceptance/app.test.js @@ -1428,10 +1428,13 @@ test('GET with callback must return 200 status error even if it is an error', fu method: 'GET' },{}, function(res) { assert.equal(res.statusCode, 200, res.statusCode + ': ' + res.body); + var didRunJsonCallback = false; function foo_jsonp(body) { assert.deepEqual(body, {"error":["must be owner of relation untitle_table_4"]}); + didRunJsonCallback = true; } eval(res.body); + assert.ok(didRunJsonCallback); done(); }); });