diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 12:03:25 +0000 |
---|---|---|
committer | Lewis Russell <lewis6991@gmail.com> | 2024-01-12 12:04:20 +0000 |
commit | 284e0ad26dd9de90c3a813dd1b357a425eca6bad (patch) | |
tree | 55b60f82154a6aadbd3c53e6441e0b2c590f11f6 /test/functional/ex_cmds/profile_spec.lua | |
parent | 56a2ec5c79d49421758319f1a8822cf30f1f8a5e (diff) | |
download | rneovim-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.lua | 10 |
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) |