Status fixes

This commit is contained in:
Lauren Budorick
2016-03-29 18:30:37 -07:00
committed by Patrick Niklaus
parent d4e2b5a3b8
commit 467d93ffff
3 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -101,8 +101,8 @@ module.exports = {
if (rowError) {
bad++;
this.diff.push(Object.assign({}, row, {status: 'undefined'}));
this.diff.push(Object.assign({}, actual[i], {status: 'comment'}));
this.diff.push(Object.assign({}, row, {c_status: 'undefined'}));
this.diff.push(Object.assign({}, actual[i], {c_status: 'comment'}));
} else {
good++;
this.diff.push(row);
@@ -118,8 +118,8 @@ module.exports = {
this.diff.forEach((row) => {
var rowString = '| ';
this.headers.forEach((header) => {
if (!row.status) rowString += ' ' + row[header] + ' | ';
else if (row.status === 'undefined') rowString += '(-) ' + row[header] + ' | ';
if (!row.c_status) rowString += ' ' + row[header] + ' | ';
else if (row.c_status === 'undefined') rowString += '(-) ' + row[header] + ' | ';
else rowString += '(+) ' + row[header] + ' | ';
});
s.push(rowString);
+2 -2
View File
@@ -47,11 +47,11 @@ module.exports = function () {
}
if (headers.has('status')) {
got.status = json.status.toString();
got.status = res.statusCode.toString();
}
if (headers.has('message')) {
got.message = json.status_message;
got.message = json.message || '';
}
if (headers.has('#')) {