Browse Source

Test written

pull/122/head
Zbynek Rybicka 6 years ago committed by Jeremy Nagel
parent
commit
bd898ae4ce
  1. 3870
      tests/sample.sql
  2. 20
      tests/tests.js

3870
tests/sample.sql

File diff suppressed because it is too large Load Diff

20
tests/tests.js

@ -2303,4 +2303,24 @@ describe("xmysql : tests", function() {
done();
});
it('calls procedure set_credit_limit', function (done) {
const obj = {
customeNumber: 103,
creditLimit: 1e6
}
agent.post(apiPrefix + '/_proc/set_credit_limit') //enter url
.send(obj) //postdata
.expect(200)//200 for success 4xx for failure
.end(function (err, res) {
// Handle /api/v error
if (err) {
return done(err);
}
//validate response
return done();
})
})
});

Loading…
Cancel
Save