summaryrefslogtreecommitdiff
path: root/lua/tests/automated/pickers/find_files_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/tests/automated/pickers/find_files_spec.lua')
-rw-r--r--lua/tests/automated/pickers/find_files_spec.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/lua/tests/automated/pickers/find_files_spec.lua b/lua/tests/automated/pickers/find_files_spec.lua
index ba1c21b..b4001cc 100644
--- a/lua/tests/automated/pickers/find_files_spec.lua
+++ b/lua/tests/automated/pickers/find_files_spec.lua
@@ -38,9 +38,10 @@ describe("builtin.find_files", function()
sorter = require('telescope.sorters').get_fzy_sorter(),
layout_strategy = 'center',
layout_config = {
- height = max_results,
+ height = max_results + 1,
width = 0.9,
},
+ border = false,
}, vim.fn.json_decode([==[%s]==])))
]],
vim.fn.json_encode(configuration)
@@ -57,6 +58,8 @@ describe("builtin.find_files", function()
tester.run_string(string.format(
[[
+ local max_results = 5
+
tester.builtin_picker('find_files', 'README.md', {
post_typed = {
{ %s, function() return #GetResults() end },
@@ -66,9 +69,10 @@ describe("builtin.find_files", function()
sorter = require('telescope.sorters').get_fzy_sorter(),
layout_strategy = 'center',
layout_config = {
- height = max_results,
+ height = max_results + 1,
width = 0.9,
},
+ border = false,
}, vim.fn.json_decode([==[%s]==])))
]],
expected,