From 7c716a82731b9a91108dcf7a90f6ff1da7e6ca00 Mon Sep 17 00:00:00 2001 From: Joseph Huckaby Date: Wed, 16 Nov 2022 14:40:34 -0800 Subject: [PATCH] Fixed unit test when config API was changed. --- lib/test.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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(); } );