diff options
Diffstat (limited to 'test/functional/ex_cmds/profile_spec.lua')
-rw-r--r-- | test/functional/ex_cmds/profile_spec.lua | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/functional/ex_cmds/profile_spec.lua b/test/functional/ex_cmds/profile_spec.lua index 249373a9c4..f85dcc60ff 100644 --- a/test/functional/ex_cmds/profile_spec.lua +++ b/test/functional/ex_cmds/profile_spec.lua @@ -1,27 +1,27 @@ require('os') -local luv = require('luv') +local uv = vim.uv -local helpers = require('test.functional.helpers')(after_each) -local eval = helpers.eval -local command = helpers.command -local eq, neq = helpers.eq, helpers.neq +local helpers = require('test.functional.helpers')(after_each) +local eval = helpers.eval +local command = helpers.command +local eq, neq = helpers.eq, helpers.neq local tempfile = helpers.tmpname() -local source = helpers.source -local matches = helpers.matches +local source = helpers.source +local matches = helpers.matches 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) |