From 4bfdab5ecf6760fcc3c1b8883d5a868cb5f709ab Mon Sep 17 00:00:00 2001 From: oof1lab Date: Mon, 6 Nov 2017 22:09:22 +0000 Subject: [PATCH] Fix : tests _ was missing with sort query param! --- tests/tests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests.js b/tests/tests.js index da76b12f7f..8e60dd8b07 100644 --- a/tests/tests.js +++ b/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