aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshadmansaleh <shadmansaleh3@gmail.com>2021-06-12 23:15:38 +0600
committershadmansaleh <shadmansaleh3@gmail.com>2021-07-01 08:25:55 +0600
commit27ea0d37e18d86c13c2e5ddb832ca6bff20f93de (patch)
tree8ced8f9f4ea7bfb324b465f49b3c5ae9608a8fbc
parentb82d8faf53893ee9d0e7b2c6d843efe702dadb57 (diff)
downloadrneovim-27ea0d37e18d86c13c2e5ddb832ca6bff20f93de.tar.gz
rneovim-27ea0d37e18d86c13c2e5ddb832ca6bff20f93de.tar.bz2
rneovim-27ea0d37e18d86c13c2e5ddb832ca6bff20f93de.zip
Refactor(tests): mkdir_p in startup/init.lua test
-rw-r--r--test/functional/core/startup_spec.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index 658dfbda60..a70b94c0e9 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -443,10 +443,7 @@ describe('user config init', function()
before_each(function()
rmdir(xhome)
- -- TODO, make mkdir_p helper
- mkdir(xhome)
- mkdir(xconfig)
- mkdir(xconfig .. pathsep .. 'nvim')
+ mkdir_p(xconfig .. pathsep .. 'nvim')
write_file(init_lua_path, [[
vim.g.lua_rc = 1