Skip to content

Commit

Permalink
Fixed unit test when config API was changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhuckaby committed Nov 16, 2022
1 parent a2d3f01 commit 7c716a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
} );
Expand Down

0 comments on commit 7c716a8

Please sign in to comment.