diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-03-25 19:06:28 +0000 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-03-25 21:09:57 +0000 |
commit | a7bbda121d035d050b449b4dc63bd6ae027e248d (patch) | |
tree | fb31bb2003624b57aee5a0b740822d8b8ca76e5a /test/functional/lua/loader_spec.lua | |
parent | 3fd8292aaf215a17c3803ed84bc3b9dfd4931294 (diff) | |
download | rneovim-a7bbda121d035d050b449b4dc63bd6ae027e248d.tar.gz rneovim-a7bbda121d035d050b449b4dc63bd6ae027e248d.tar.bz2 rneovim-a7bbda121d035d050b449b4dc63bd6ae027e248d.zip |
fix(test): typing
Diffstat (limited to 'test/functional/lua/loader_spec.lua')
-rw-r--r-- | test/functional/lua/loader_spec.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/lua/loader_spec.lua b/test/functional/lua/loader_spec.lua index 4e42a18405..6f74385e45 100644 --- a/test/functional/lua/loader_spec.lua +++ b/test/functional/lua/loader_spec.lua @@ -73,12 +73,12 @@ describe('vim.loader', function() vim.loader.enable() ]] - local tmp1, tmp2 = (function(t) - assert(os.remove(t)) - assert(helpers.mkdir(t)) - assert(helpers.mkdir(t .. '/%')) - return t .. '/%/x', t .. '/%%x' - end)(helpers.tmpname()) + local t = helpers.tmpname() + assert(os.remove(t)) + assert(helpers.mkdir(t)) + assert(helpers.mkdir(t .. '/%')) + local tmp1 = t .. '/%/x' + local tmp2 = t .. '/%%x' helpers.write_file(tmp1, 'return 1', true) helpers.write_file(tmp2, 'return 2', true) |