Add response code to test result values

This commit is contained in:
Michael Krasnyk
2017-05-09 15:56:30 +02:00
committed by Patrick Niklaus
parent 2f02384d22
commit a5bfcd876f
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -16,10 +16,13 @@ module.exports = function () {
var headers = new Set(table.raw()[0]);
got.code = 'unknown';
if (res.body.length) {
json = JSON.parse(res.body);
got.code = json.code;
}
if (headers.has('status')) {
got.status = json.status.toString();
}
@@ -33,7 +36,7 @@ module.exports = function () {
got['#'] = row['#'];
}
var subMatchings = [],
var subMatchings = [''],
turns = '',
route = '',
duration = '',