ivy.nvim/lua/ivy/window_test.lua
Ade Attwood 6f58ad6d67 feat: add vsplit and split actions
Now you can open the currently selected item in a vertical split or a
horizontal split. The completion callback must support the current
actions.

There is also a bit of testing in here. The vim mock has been refactored
and split out so we can use it multiple tests.
2022-09-07 21:19:33 +01:00

14 lines
305 B
Lua

local vim_mock = require "ivy.vim_mock"
local window = require "ivy.window"
before_each(function()
vim_mock.reset()
end)
it("can initialize", function(t)
window.initialize()
if window.get_buffer() ~= 10 then
t.error("The windows buffer should be 10 found " .. window.get_buffer())
end
end)