Browse Source

Fix : tests

_ was missing with sort query param!
pull/13/head
oof1lab 7 years ago
parent
commit
4bfdab5ecf
  1. 4
      tests/tests.js

4
tests/tests.js

@ -944,10 +944,10 @@ describe('xmysql : tests', function () {
});
it('GET /api/offices/groupby?_fields=country,city&sort=city,-country should PASS', function (done) {
it('GET /api/offices/groupby?_fields=country,city&_sort=city,-country should PASS', function (done) {
//post to an url with data
agent.get('/api/offices/groupby?_fields=country,city&sort=city,-country') //enter url
agent.get('/api/offices/groupby?_fields=country,city&_sort=city,-country') //enter url
.expect(200)//200 for success 4xx for failure
.end(function (err, res) {
// Handle /api/v error

Loading…
Cancel
Save