aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/012_directory_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-01-03 02:09:18 +0100
committerJustin M. Keyes <justinkz@gmail.com>2024-01-03 02:09:29 +0100
commit04f2f864e270e772c6326cefdf24947f0130e492 (patch)
tree46f83f909b888a66c741032ab955afc6eab84292 /test/functional/legacy/012_directory_spec.lua
parent59d117ec99b6037cb9fad5bbfb6d0b18f5012927 (diff)
downloadrneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.gz
rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.bz2
rneovim-04f2f864e270e772c6326cefdf24947f0130e492.zip
refactor: format test/*
Diffstat (limited to 'test/functional/legacy/012_directory_spec.lua')
-rw-r--r--test/functional/legacy/012_directory_spec.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/legacy/012_directory_spec.lua b/test/functional/legacy/012_directory_spec.lua
index 25d0dcb81e..f78648a328 100644
--- a/test/functional/legacy/012_directory_spec.lua
+++ b/test/functional/legacy/012_directory_spec.lua
@@ -21,7 +21,7 @@ local mkdir = helpers.mkdir
local function ls_dir_sorted(dirname)
local files = {}
for f in vim.fs.dir(dirname) do
- if f ~= "." and f~= ".." then
+ if f ~= '.' and f ~= '..' then
table.insert(files, f)
end
end
@@ -78,7 +78,7 @@ describe("'directory' option", function()
-- swapfile should no longer exist in CWD.
eq(nil, luv.fs_stat('.Xtest1.swp'))
- eq({ "Xtest1.swp", "Xtest3" }, ls_dir_sorted("Xtest2"))
+ eq({ 'Xtest1.swp', 'Xtest3' }, ls_dir_sorted('Xtest2'))
meths.set_option_value('directory', 'Xtest.je', {})
command('bdelete')
@@ -86,7 +86,7 @@ describe("'directory' option", function()
eq(true, meths.get_option_value('swapfile', {}))
poke_eventloop()
- eq({ "Xtest3" }, ls_dir_sorted("Xtest2"))
- eq({ "Xtest3.swp" }, ls_dir_sorted("Xtest.je"))
+ eq({ 'Xtest3' }, ls_dir_sorted('Xtest2'))
+ eq({ 'Xtest3.swp' }, ls_dir_sorted('Xtest.je'))
end)
end)