Files
moonsource-qidian/tests/qidian/web_spec.lua
T
GarfieldandCopilot 0956063d06 ✨ 初始提交:月读第三方书源插件集合
每个书源一个独立插件目录,含微信读书公众号订阅、书架导入等完整功能。

Co-authored-by: Copilot <[email protected]>
2026-11-16 12:08:03 +08:00

9 lines
450 B
Lua

--[[-- 起点验证码网页回归,使用已有 Node。 @module tests.moonsource_qidian.web_spec --]]
local Assert = require("support.assert")
local here = debug.getinfo(1, "S").source:match("^@(.+)/[^/]+$") or "."
local root = here .. "/../.."
local pipe = assert(io.popen('node "' .. here .. '/web_spec.js" "' .. root .. '" 2>&1'))
local output = pipe:read("*a")
pipe:close()
Assert.is_true(output:find("qidian web: OK", 1, true) ~= nil, output)