aboutsummaryrefslogtreecommitdiff
path: root/t/run.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-01-13 14:22:07 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-01-13 14:22:07 -0500
commit9424e382ece5181f00f70f79219e3248a468eeaa (patch)
treedf4b3ab85dead92995ded46a334db35f0dc15534 /t/run.lua
parent7b759c54f20b07afdeed514e786c3264f0969845 (diff)
downloadlite-xl-plugin-manager-9424e382ece5181f00f70f79219e3248a468eeaa.tar.gz
lite-xl-plugin-manager-9424e382ece5181f00f70f79219e3248a468eeaa.zip
Moved tests up.v0.998
Diffstat (limited to 't/run.lua')
-rw-r--r--t/run.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/t/run.lua b/t/run.lua
index 9ea462f..8c60b9c 100644
--- a/t/run.lua
+++ b/t/run.lua
@@ -77,6 +77,11 @@ local tests = {
break
end
end
+ end,
+ ["07_manifest"] = function()
+ local results = json.decode(io.open("manifest.json", "rb"):read("*all"))
+ assert(#results["remotes"] == 2)
+ assert(#results["addons"] == 2)
end
}
@@ -118,8 +123,10 @@ local function run_tests(tests, arg)
print("[FAIL]: " .. debug.traceback(err, 2))
print()
print()
- print("Last Command: " .. last_command)
- print(json.encode(last_command_result))
+ if last_command then
+ print("Last Command: " .. last_command)
+ print(json.encode(last_command_result))
+ end
fail_count = fail_count + 1
failed = true
end)