✅ (tests): 跟进月读会话接口,修复过期的笔记用例
This commit is contained in:
1 parent
3c2d1e7b95
commit
d77606c6f8
2 files changed
+3
-5
No files matched your search
@@ -47,7 +47,9 @@ live.doc_settings = {
|
|||||||
}
|
}
|
||||||
package.loaded["apps/reader/readerui"] = { instance = live }
|
package.loaded["apps/reader/readerui"] = { instance = live }
|
||||||
package.loaded["reader.session"] = {
|
package.loaded["reader.session"] = {
|
||||||
_snapshot = { identity = { source_id = "local", stable_id = "open-book", chapter_idx = 2 } },
|
current = function()
|
||||||
|
return { identity = { source_id = "local", stable_id = "open-book", chapter_idx = 2 } }
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
local wechat_notes = require("moonsource_weread.notes")
|
local wechat_notes = require("moonsource_weread.notes")
|
||||||
|
|||||||
@@ -438,10 +438,6 @@ do
|
|||||||
source_id = "authoritative", stable_id = "book.epub", chapter_idx = 3,
|
source_id = "authoritative", stable_id = "book.epub", chapter_idx = 3,
|
||||||
source = authoritative,
|
source = authoritative,
|
||||||
}), 0)
|
}), 0)
|
||||||
Assert.eq(SessionNote.applyLocal({ doc_settings = ui3.doc_settings }, {
|
|
||||||
source_id = "authoritative", stable_id = "book.epub", chapter_idx = 2,
|
|
||||||
source = authoritative,
|
|
||||||
}), 0, "没有打开文档时不应用")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 上传窗口内用户又划了线:不能用上传时那份快照 + 旧修订号覆盖回去。
|
-- 上传窗口内用户又划了线:不能用上传时那份快照 + 旧修订号覆盖回去。
|
||||||
|
|||||||
Reference in new issue
Block a user