♻️ 书源 id 去掉 ext. 前缀,沿用旧内置源数据
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
1 parent
01e572a5ee
commit
f8ad3f73a6
29 files changed
+173
-173
No files matched your search
@@ -316,9 +316,9 @@ end
|
||||
do
|
||||
local removed = {}
|
||||
local n = Mp.dropLegacyBooks({
|
||||
stableIdsBySource = function(source) Assert.eq(source, "ext.weread"); return { "100", "MP_WXS_1", "MP_WXS_2" } end,
|
||||
stableIdsBySource = function(source) Assert.eq(source, "weread"); return { "100", "MP_WXS_1", "MP_WXS_2" } end,
|
||||
remove = function(source, id) removed[#removed + 1] = source .. ":" .. id end,
|
||||
})
|
||||
Assert.eq(n, 2)
|
||||
Assert.eq(table.concat(removed, ","), "ext.weread:MP_WXS_1,ext.weread:MP_WXS_2")
|
||||
Assert.eq(table.concat(removed, ","), "weread:MP_WXS_1,weread:MP_WXS_2")
|
||||
end
|
||||
Reference in new issue
Block a user