Browse Source

Update test

pull/122/head
Jeremy Nagel 4 years ago
parent
commit
d2cb9d1b93
  1. 22
      tests/tests.js

22
tests/tests.js

@ -2330,18 +2330,26 @@ describe("xmysql : tests", function() {
customeNumber: 103, customeNumber: 103,
creditLimit: 23134.00 creditLimit: 23134.00
} }
agent.post('/_proc/set_credit_limit') //enter url agent.post('/_proc/set_credit_limit')
.send(obj) //postdata .send(obj)
.expect(200)//200 for success 4xx for failure .expect(200)
.end(function (err, res) { .end(function (err, res) {
// Handle /api/v error
if (err) { if (err) {
return done(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(); return done();
}) });
}) });
}); });

Loading…
Cancel
Save