aboutsummaryrefslogtreecommitdiff
path: root/t/run.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-01-17 17:20:04 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-01-17 17:20:04 -0500
commitd46b2092d0e81bdcbb94714df816f0f98371eb52 (patch)
tree69a8e6a61debf22054ef64496e1fbcb9c6b884b7 /t/run.lua
parentc2c049448c4357eeb8474f21e880fd7258d90d80 (diff)
downloadlite-xl-plugin-manager-d46b2092d0e81bdcbb94714df816f0f98371eb52.tar.gz
lite-xl-plugin-manager-d46b2092d0e81bdcbb94714df816f0f98371eb52.zip
Added specific case to test suite, and fixed complex vs. singleton typing for some plugins.v0.9995
Diffstat (limited to 't/run.lua')
-rw-r--r--t/run.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/run.lua b/t/run.lua
index 94a13fa..7f85c14 100644
--- a/t/run.lua
+++ b/t/run.lua
@@ -45,6 +45,9 @@ local tests = {
assert_exists(userdir .. "/plugins/plugin_manager/init.lua")
actions = lpm("uninstall plugin_manager")["actions"]
assert_not_exists(userdir .. "/plugins/plugin_manager")
+ lpm("install editorconfig")
+ assert_exists(userdir .. "/plugins/editorconfig")
+ assert_exists(userdir .. "/plugins/editorconfig/init.lua")
end,
["03_upgrade_complex"] = function()
local actions = lpm("install plugin_manager")
@@ -81,7 +84,12 @@ local tests = {
local actions = lpm("install encodings")
assert_exists(userdir .. "/plugins/encodings.lua")
local stat = system.stat(userdir .. "/plugins/encodings.lua")
+ assert(stat)
assert(stat.type == "file")
+ assert_exists(userdir .. "/libraries/encoding")
+ stat = system.stat(userdir .. "/libraries/encoding")
+ assert(stat)
+ assert(stat.type == "dir")
end,
["07_manifest"] = function()
local results = json.decode(io.open("manifest.json", "rb"):read("*all"))