aboutsummaryrefslogtreecommitdiff
path: root/t/run.lua
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-06-13 11:08:01 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-06-13 11:08:01 -0400
commit5f297f2d98f7a289c46cb0580b24736af475e654 (patch)
tree99e695939cb8f1fef3a692e729f1feb9c8abafb8 /t/run.lua
parentc7cb1f224573e29658536f3c0f55bf920c51732f (diff)
downloadlite-xl-plugin-manager-5f297f2d98f7a289c46cb0580b24736af475e654.tar.gz
lite-xl-plugin-manager-5f297f2d98f7a289c46cb0580b24736af475e654.zip
Added in some tests, and added in coloring of output in terminals.
Diffstat (limited to 't/run.lua')
-rw-r--r--t/run.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/run.lua b/t/run.lua
index 3834db3..9985e40 100644
--- a/t/run.lua
+++ b/t/run.lua
@@ -110,6 +110,16 @@ local tests = {
assert_exists(userdir .. "/plugins/plugin_manager/lpm.x86_64-linux")
assert_exists(userdir .. "/plugins/plugin_manager/lpm.x86_64-windows.exe")
assert_exists(userdir .. "/plugins/plugin_manager/init.lua")
+ end,
+ ["11_dependency_check"] = function()
+ lpm("install lsp")
+ assert_exists(userdir .. "/plugins/lsp")
+ assert_exists(userdir .. "/plugins/lintplus")
+ assert_exists(userdir .. "/plugins/settings.lua")
+ lpm("uninstall lsp")
+ assert_not_exists(userdir .. "/plugins/lsp")
+ assert_not_exists(userdir .. "/plugins/lintplus")
+ assert_not_exists(userdir .. "/plugins/settings.lua")
end
}