summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
authorChristian Chiarulli <[email protected]>2022-11-02 18:09:35 -0400
committerGitHub <[email protected]>2022-11-02 18:09:35 -0400
commit531ddb459e6be85e3425c8ed7a237c81992108fe (patch)
treecf07e06c7b4b7203747492eca06d4317ad1a83da /tests/specs
parentf6e5dc0d44c757f4fc73fa4c28d05b7b05ff1650 (diff)
fix: rollback plugin loader changes (#3402)
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/config_loader_spec.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/specs/config_loader_spec.lua b/tests/specs/config_loader_spec.lua
index 73679c9d..99053548 100644
--- a/tests/specs/config_loader_spec.lua
+++ b/tests/specs/config_loader_spec.lua
@@ -28,14 +28,14 @@ a.describe("config-loader", function()
end)
a.it("should be able to load user-config without errors", function()
- config.load(user_config_path)
+ config:load(user_config_path)
end)
a.it("should be able to reload user-config without errors", function()
- config.load(user_config_path)
+ config:load(user_config_path)
local test_path = "/tmp/lvim"
os.execute(string.format([[echo "vim.opt.undodir = '%s'" >> %s]], test_path, user_config_path))
- config.reload()
+ config:reload()
vim.schedule(function()
assert.equal(vim.opt.undodir:get()[1], test_path)
end)
@@ -44,11 +44,11 @@ a.describe("config-loader", function()
a.it("should not get interrupted by errors in user-config", function()
local test_path = "/tmp/lunarvim"
os.execute(string.format([[echo "vim.opt.undodir = '%s'" >> %s]], test_path, user_config_path))
- config.load(user_config_path)
+ config:load(user_config_path)
assert.equal(vim.opt.undodir:get()[1], test_path)
require("lvim.core.log"):set_level "error"
os.execute(string.format("echo 'invalid_function()' >> %s", user_config_path))
- config.load(user_config_path)
+ config:load(user_config_path)
require("lvim.core.log"):set_level "error"
assert.equal(vim.opt.undodir:get()[1], test_path)
end)