diff --git a/lib/test.js b/lib/test.js index 28854f26..0e90daf6 100644 --- a/lib/test.js +++ b/lib/test.js @@ -271,13 +271,10 @@ module.exports = { function testAPIConfig(test) { // test app/config api var params = {}; - request.json( api_url + '/app/config', params, function(err, resp, data) { + request.get( api_url + '/app/config', params, function(err, resp, data) { test.ok( !err, "No error requesting API" ); test.ok( resp.statusCode == 200, "HTTP 200 from API" ); - test.ok( "code" in data, "Found code prop in JSON response" ); - test.ok( data.code == 0, "Code is zero (no error)" ); - test.ok( !!data.config, "Found config in response data" ); test.done(); } );