revamp dirs
This commit is contained in:
parent
2e1280e17c
commit
228b088bf7
3 changed files with 7 additions and 22 deletions
|
|
@ -1,18 +0,0 @@
|
||||||
describe("cp.nvim", function()
|
|
||||||
it("can be required", function()
|
|
||||||
local cp = require("cp")
|
|
||||||
assert.is_not_nil(cp)
|
|
||||||
assert.is_function(cp.setup)
|
|
||||||
assert.is_function(cp.handle_command)
|
|
||||||
end)
|
|
||||||
|
|
||||||
it("has health check", function()
|
|
||||||
local health = require("cp.health")
|
|
||||||
assert.is_not_nil(health)
|
|
||||||
end)
|
|
||||||
|
|
||||||
it("initializes properly", function()
|
|
||||||
local cp = require("cp")
|
|
||||||
assert.is_true(cp.is_initialized())
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
7
test/plugin_spec.lua
Normal file
7
test/plugin_spec.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
local cp = require('cp')
|
||||||
|
|
||||||
|
describe('neovim plugin', function()
|
||||||
|
it('work as expect', function()
|
||||||
|
cp.setup
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
vim.env.XDG_CONFIG_HOME = vim.fn.getcwd() .. "/.tests/xdg/config"
|
|
||||||
vim.env.XDG_DATA_HOME = vim.fn.getcwd() .. "/.tests/xdg/data"
|
|
||||||
vim.env.XDG_STATE_HOME = vim.fn.getcwd() .. "/.tests/xdg/state"
|
|
||||||
vim.opt.runtimepath:append(vim.fn.getcwd())
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue