[misc] ApplyingUpdatesToADocTests: adhere to stricter chai assertions

This commit is contained in:
Jakob Ackermann 2021-07-13 12:51:06 +01:00
parent 1184f8f5b6
commit bf8224e2a0

View file

@ -150,6 +150,7 @@ describe('Applying updates to a doc', function () {
if (error != null) {
throw error
}
result = parseInt(result, 10)
result.should.be.within(this.startTime, Date.now())
this.firstOpTimestamp = result
return done()
@ -186,6 +187,7 @@ describe('Applying updates to a doc', function () {
if (error != null) {
throw error
}
result = parseInt(result, 10)
result.should.equal(this.firstOpTimestamp)
return done()
}