diff options
author | Gregory Anders <greg@gpanders.com> | 2022-05-15 19:53:23 -0600 |
---|---|---|
committer | Gregory Anders <greg@gpanders.com> | 2022-05-31 13:04:41 -0600 |
commit | c5526a27c3b61acb33b7c3c3fe518d8f1e0b602f (patch) | |
tree | 574fc05f7d38347d63ca7610343637c98e065f59 /test/functional/lua/fs_spec.lua | |
parent | 67cbaf58c41a3db19c5014587e72d06be9e3d58e (diff) | |
download | rneovim-c5526a27c3b61acb33b7c3c3fe518d8f1e0b602f.tar.gz rneovim-c5526a27c3b61acb33b7c3c3fe518d8f1e0b602f.tar.bz2 rneovim-c5526a27c3b61acb33b7c3c3fe518d8f1e0b602f.zip |
feat(fs): add vim.fs.dirname()
Diffstat (limited to 'test/functional/lua/fs_spec.lua')
-rw-r--r-- | test/functional/lua/fs_spec.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/lua/fs_spec.lua b/test/functional/lua/fs_spec.lua index 69eb8cd539..23ffb1e607 100644 --- a/test/functional/lua/fs_spec.lua +++ b/test/functional/lua/fs_spec.lua @@ -30,4 +30,13 @@ describe('vim.fs', function() rmdir(test_dir) end) end) + + describe('dirname()', function() + it('works', function() + eq(test_build_dir, exec_lua([[ + local nvim_dir = ... + return vim.fs.dirname(nvim_dir) + ]], nvim_dir)) + end) + end) end) |