Add regression test

This commit is contained in:
Patrick Niklaus
2016-11-01 20:23:13 +00:00
committed by Patrick Niklaus
parent 08a5648e3e
commit 9693f9269b
2 changed files with 72 additions and 7 deletions
+9 -7
View File
@@ -154,14 +154,16 @@ module.exports = function () {
}
};
if (subMatchings.length != row.matchings.split(',').length) {
ok = false;
cb(new Error('*** table matchings and api response are not the same'));
}
if (headers.has('matchings')) {
if (subMatchings.length != row.matchings.split(',').length) {
ok = false;
cb(new Error('*** table matchings and api response are not the same'));
}
row.matchings.split(',').forEach((sub, si) => {
testSubMatching(sub, si);
});
row.matchings.split(',').forEach((sub, si) => {
testSubMatching(sub, si);
});
}
if (ok) {
if (headers.has('matchings')) {