add tests for dataviews

This commit is contained in:
Eneko Lakasta
2018-08-29 18:00:13 +02:00
parent 732f891850
commit c9d50c412d
3 changed files with 25 additions and 13 deletions
+3 -4
View File
@@ -509,16 +509,15 @@ TestClient.prototype.getDataview = function(dataviewName, params, callback) {
if (err) {
return next(err);
}
next(null, JSON.parse(res.body));
next(null, JSON.parse(res.body), res.headers);
}
);
},
function finish(err, dataview) {
function finish(err, dataview, headers = null) {
if (err) {
return callback(err);
}
return callback(null, dataview);
return callback(null, dataview, headers);
}
);
};