mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
fix use of timekeeper in unit tests
This commit is contained in:
@@ -323,9 +323,9 @@ describe "RedisManager", ->
|
||||
|
||||
describe "with a consistent version", ->
|
||||
beforeEach ->
|
||||
tk.freeze(new Date())
|
||||
@RedisManager.getDocVersion.withArgs(@doc_id).yields(null, @version - @ops.length)
|
||||
@RedisManager.updateDocument @doc_id, @lines, @version, @ops, @ranges, @callback
|
||||
tk.freeze(new Date())
|
||||
|
||||
afterEach ->
|
||||
tk.reset()
|
||||
|
||||
Reference in New Issue
Block a user