Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test_closing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local T = MiniTest.new_set({
},
})

T["close side buffers on last main quit"] = function()
T["close zen side buffers on last main quit"] = function()
Helpers.expect.layout(child, {
type = "row",
children = {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_opening.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local T = MiniTest.new_set({
},
})

T["open side buffers on startup"] = function()
T["open zen side buffers on startup"] = function()
Helpers.expect.layout(child, {
type = "row",
children = {
Expand Down
26 changes: 26 additions & 0 deletions tests/test_tabs.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
local Helpers = dofile("tests/scripts/helpers.lua")
local child = MiniTest.new_child_neovim()

local T = MiniTest.new_set({
hooks = {
pre_case = function()
child.restart({ "-u", "tests/scripts/init_with_zen.lua" })
end,
post_once = child.stop,
},
})

T["open zen buffers on a new tab"] = function()
Comment thread
sand4rt marked this conversation as resolved.
Outdated
child.cmd("tabnew")

Helpers.expect.layout(child, {
type = "row",
children = {
{ type = "leaf", filetype = "zen-left", buftype = "nofile", width = 46, height = 49 },
{ type = "leaf", filetype = "", buftype = "", width = 146, height = 49 },
{ type = "leaf", filetype = "zen-right", buftype = "nofile", width = 46, height = 49 },
},
})
end

return T
Loading