Skip to content

Commit 5da1911

Browse files
committed
feat(test): remove path
1 parent 659f575 commit 5da1911

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

lua/telescope/testharness/init.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
local assert = require "luassert"
22

3-
local Path = require "neoplen.path"
4-
53
local tester = {}
64
tester.debug = false
75

@@ -79,9 +77,8 @@ end
7977

8078
tester.run_file = function(filename)
8179
local file = "./lua/tests/pickers/" .. filename .. ".lua"
82-
local path = Path:new(file)
8380

84-
if not path:exists() then
81+
if not vim.uv.fs_stat(file) then
8582
assert.are.same("<An existing file>", file)
8683
end
8784

@@ -98,7 +95,7 @@ tester.run_file = function(filename)
9895
return {ok, msg or runner.state}
9996
end)()
10097
]],
101-
path:absolute()
98+
vim.fs.abspath(file)
10299
)
103100

104101
check_results(get_results_from_contents(contents))

0 commit comments

Comments
 (0)