mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
fix use of timekeeper in unit tests
This commit is contained in:
parent
4d82f1432a
commit
7c2a28c161
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue