CDB-3255 More secure test

This commit is contained in:
Raul Ochoa 2014-08-05 00:57:09 +02:00
parent ce70e7252b
commit 63d41e4843

View File

@ -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();
});
});