mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
[misc] ApplyingUpdatesToADocTests: adhere to stricter chai assertions
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user