diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-01-13 14:22:07 -0500 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-01-13 14:22:07 -0500 |
commit | 9424e382ece5181f00f70f79219e3248a468eeaa (patch) | |
tree | df4b3ab85dead92995ded46a334db35f0dc15534 /t | |
parent | 7b759c54f20b07afdeed514e786c3264f0969845 (diff) | |
download | lite-xl-plugin-manager-9424e382ece5181f00f70f79219e3248a468eeaa.tar.gz lite-xl-plugin-manager-9424e382ece5181f00f70f79219e3248a468eeaa.zip |
Moved tests up.v0.998
Diffstat (limited to 't')
-rw-r--r-- | t/run.lua | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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) |