aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/profile_spec.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-01-12 12:03:25 +0000
committerLewis Russell <lewis6991@gmail.com>2024-01-12 12:04:20 +0000
commit284e0ad26dd9de90c3a813dd1b357a425eca6bad (patch)
tree55b60f82154a6aadbd3c53e6441e0b2c590f11f6 /test/functional/ex_cmds/profile_spec.lua
parent56a2ec5c79d49421758319f1a8822cf30f1f8a5e (diff)
downloadrneovim-284e0ad26dd9de90c3a813dd1b357a425eca6bad.tar.gz
rneovim-284e0ad26dd9de90c3a813dd1b357a425eca6bad.tar.bz2
rneovim-284e0ad26dd9de90c3a813dd1b357a425eca6bad.zip
test: use vim.mpack and vim.uv directly
Diffstat (limited to 'test/functional/ex_cmds/profile_spec.lua')
-rw-r--r--test/functional/ex_cmds/profile_spec.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/ex_cmds/profile_spec.lua b/test/functional/ex_cmds/profile_spec.lua
index fb594c70e6..f85dcc60ff 100644
--- a/test/functional/ex_cmds/profile_spec.lua
+++ b/test/functional/ex_cmds/profile_spec.lua
@@ -1,5 +1,5 @@
require('os')
-local luv = require('luv')
+local uv = vim.uv
local helpers = require('test.functional.helpers')(after_each)
local eval = helpers.eval
@@ -12,16 +12,16 @@ local read_file = helpers.read_file
-- tmpname() also creates the file on POSIX systems. Remove it again.
-- We just need the name, ignoring any race conditions.
-if luv.fs_stat(tempfile).uid then
+if uv.fs_stat(tempfile).uid then
os.remove(tempfile)
end
local function assert_file_exists(filepath)
- neq(nil, luv.fs_stat(filepath).uid)
+ neq(nil, uv.fs_stat(filepath).uid)
end
local function assert_file_exists_not(filepath)
- eq(nil, luv.fs_stat(filepath))
+ eq(nil, uv.fs_stat(filepath))
end
describe(':profile', function()
@@ -29,7 +29,7 @@ describe(':profile', function()
after_each(function()
helpers.expect_exit(command, 'qall!')
- if luv.fs_stat(tempfile).uid ~= nil then
+ if uv.fs_stat(tempfile).uid ~= nil then
os.remove(tempfile)
end
end)