Skip to content

Commit a54d1d4

Browse files
committed
fix(test)
1 parent 14d1245 commit a54d1d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/api/models/g_conditional_fields.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ GSchema.statics.report = function (report) {
7070
case 'functiondemo' :
7171
reportSchema = {
7272
'pipeline': [
73-
{'$group': {'_id': '$sex', 'count': {'$sum': 1}, 'functionResult': {'$sum': 1}}}
73+
{'$group': {'_id': '$sex', 'count': {'$sum': 1}, 'functionResult': {'$sum': 1}}},
74+
{'$sort': {'_id':1}}
7475
],
7576
'title': 'Numbers of Applicants By Sex',
7677
'columnDefs': [

test/api/reportAPISpec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ describe('Report API', function () {
6161

6262
it('handles pipeline request', function (done) {
6363
var mockReq = {
64-
// url: '/report/g_conditional_fields?r={"pipeline":[{"$group":{"_id":"$sex","count":{"$sum":1}}},{"$sort":{"_id":1}}]}',
6564
url: '/report/g_conditional_fields?r={"pipeline":{"$group":{"_id":"x","count":{"$sum":1}}}}',
6665
params: {resourceName: 'g_conditional_fields'}
6766
};

0 commit comments

Comments
 (0)