Skip to content

Commit e72c2ca

Browse files
committed
test: add tests for resume picker: select_pos
1 parent febd78e commit e72c2ca

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-- Just skip on mac, it has flaky CI for some reason
2+
if vim.fn.has "mac" == 1 or require("telescope.utils").iswin then
3+
return
4+
end
5+
6+
local tester = require "telescope.testharness"
7+
8+
describe("builtin.resume", function()
9+
it("should select and open the file", function()
10+
tester.run_file "resume__select_pos"
11+
end)
12+
end)
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
local helper = require "telescope.testharness.helpers"
2+
local runner = require "telescope.testharness.runner"
3+
4+
runner.picker("find_files", ".md", {
5+
post_close = {
6+
{ "README.md", helper.get_file },
7+
},
8+
})
9+
10+
runner.picker("resume", "", {
11+
post_close = {
12+
{ "developers.md", helper.get_file },
13+
},
14+
}, { select_pos = 1 })

0 commit comments

Comments
 (0)