fix use of timekeeper in unit tests

This commit is contained in:
Brian Gough 2017-10-23 13:33:14 +01:00
parent 4d82f1432a
commit 7c2a28c161

View file

@ -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()