Fixed db regression tests

refs 6859e9a9a1

- The change in the ref didn't take into account increasing counts in regression tests
This commit is contained in:
Nazar Gargol 2019-09-30 22:32:11 +02:00
parent 955bc434d1
commit a33d5feb43
3 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ describe('DB API', function () {
const jsonResponse = res.body; const jsonResponse = res.body;
should.exist(jsonResponse.db); should.exist(jsonResponse.db);
jsonResponse.db.should.have.length(1); jsonResponse.db.should.have.length(1);
Object.keys(jsonResponse.db[0].data).length.should.eql(27); Object.keys(jsonResponse.db[0].data).length.should.eql(28);
}); });
}); });

View File

@ -88,7 +88,7 @@ describe('DB API', function () {
var jsonResponse = res.body; var jsonResponse = res.body;
should.exist(jsonResponse.db); should.exist(jsonResponse.db);
jsonResponse.db.should.have.length(1); jsonResponse.db.should.have.length(1);
Object.keys(jsonResponse.db[0].data).length.should.eql(25); Object.keys(jsonResponse.db[0].data).length.should.eql(26);
done(); done();
}); });
}); });
@ -106,7 +106,7 @@ describe('DB API', function () {
const jsonResponse = res.body; const jsonResponse = res.body;
should.exist(jsonResponse.db); should.exist(jsonResponse.db);
jsonResponse.db.should.have.length(1); jsonResponse.db.should.have.length(1);
Object.keys(jsonResponse.db[0].data).length.should.eql(27); Object.keys(jsonResponse.db[0].data).length.should.eql(28);
done(); done();
}); });
}); });

View File

@ -59,7 +59,7 @@ describe('DB API', function () {
const jsonResponse = res.body; const jsonResponse = res.body;
should.exist(jsonResponse.db); should.exist(jsonResponse.db);
jsonResponse.db.should.have.length(1); jsonResponse.db.should.have.length(1);
Object.keys(jsonResponse.db[0].data).length.should.eql(27); Object.keys(jsonResponse.db[0].data).length.should.eql(28);
}); });
}); });