Files
moonsource-kuaikan/tests/kuaikan/web_spec.lua
T
GarfieldandCopilot a228cb92dd 🚚 (layout): 书源插件统一收进 src/ 目录
测试运行器与网页验证用例的路径同步调整。

Co-authored-by: Copilot <[email protected]>
2026-11-16 19:22:43 +08:00

12 lines
483 B
Lua

--[[--
快看腾讯滑块网页回归,使用本机 Node,不增加外部依赖。
@module tests.moonsource_kuaikan.web_spec
--]]
local Assert = require("support.assert")
local here = debug.getinfo(1, "S").source:match("^@(.+)/[^/]+$") or "."
local root = here .. "/../../src"
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("kuaikan web: OK", 1, true) ~= nil, output)