From d2cb9d1b937567cdd61564470994b3e44539262a Mon Sep 17 00:00:00 2001 From: Jeremy Nagel Date: Sat, 30 May 2020 15:23:17 +1000 Subject: [PATCH] Update test --- tests/tests.js | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/tests/tests.js b/tests/tests.js index 8eeda2039f..12e9193f66 100644 --- a/tests/tests.js +++ b/tests/tests.js @@ -2330,18 +2330,26 @@ describe("xmysql : tests", function() { customeNumber: 103, creditLimit: 23134.00 } - agent.post('/_proc/set_credit_limit') //enter url - .send(obj) //postdata - .expect(200)//200 for success 4xx for failure + agent.post('/_proc/set_credit_limit') + .send(obj) + .expect(200) .end(function (err, res) { - // Handle /api/v error if (err) { return done(err); } - //validate response + res.body.should.be.deepEqual({ + fieldCount: 0, + affectedRows: 0, + insertId: 0, + serverStatus: 2, + warningCount: 0, + message: '', + protocol41: true, + changedRows: 0 + }) return done(); - }) - }) + }); + }); });