summaryrefslogtreecommitdiff
path: root/tests/specs/config_loader_spec.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-11-02 11:29:07 +0100
committerGitHub <[email protected]>2022-11-02 11:29:07 +0100
commit8d3f9b8bf7f5fddca2e8046a84ecbd7c3945dcba (patch)
tree4d6063d12004ae737347368deb08d3873d74b618 /tests/specs/config_loader_spec.lua
parent375232c95a45d917b201b4398ac173202e59e87f (diff)
refactor(theme)!: decouple tokyonight options (#3384)
Diffstat (limited to 'tests/specs/config_loader_spec.lua')
-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 99053548..73679c9d 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)