Add regression test

This commit is contained in:
Patrick Niklaus
2016-11-01 20:23:13 +00:00
parent c6472eb289
commit 5f5675d361
2 changed files with 69 additions and 3 deletions
+10 -3
View File
@@ -151,9 +151,16 @@ module.exports = function () {
}
};
row.matchings.split(',').forEach((sub, si) => {
q.defer(testSubMatching, sub, si);
});
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);
});
}
q.awaitAll(() => {
if (ok) {