diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-06-26 14:33:48 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-06-30 15:16:32 +0200 |
commit | 99f24dfbed84cea24fc1d8bb80ab10a2dd3eca0b (patch) | |
tree | 9f379c0e1e929a5ca4821c4db0cb0def18cdfedd /test/functional/lua/loop_spec.lua | |
parent | d33aaa0f5f96afb1608a4a3eb2057da956a24b2b (diff) | |
download | rneovim-99f24dfbed84cea24fc1d8bb80ab10a2dd3eca0b.tar.gz rneovim-99f24dfbed84cea24fc1d8bb80ab10a2dd3eca0b.tar.bz2 rneovim-99f24dfbed84cea24fc1d8bb80ab10a2dd3eca0b.zip |
make vim.loop == require'luv'
This avoids initializing libluv a second time if a plugin invokes
require'luv'. It is probably not an issue, but better to be safe.
Diffstat (limited to 'test/functional/lua/loop_spec.lua')
-rw-r--r-- | test/functional/lua/loop_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/lua/loop_spec.lua b/test/functional/lua/loop_spec.lua index 3b3b81f886..cd3b935e1a 100644 --- a/test/functional/lua/loop_spec.lua +++ b/test/functional/lua/loop_spec.lua @@ -142,4 +142,8 @@ describe('vim.loop', function() ]]) eq({blocking=false, mode='n'}, exec_lua("return _G.mode")) end) + + it("is equal to require('luv')", function() + eq(true, exec_lua("return vim.loop == require('luv')")) + end) end) |