diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-01-03 02:09:18 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2024-01-03 02:09:29 +0100 |
commit | 04f2f864e270e772c6326cefdf24947f0130e492 (patch) | |
tree | 46f83f909b888a66c741032ab955afc6eab84292 /test/functional/options/autochdir_spec.lua | |
parent | 59d117ec99b6037cb9fad5bbfb6d0b18f5012927 (diff) | |
download | rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.gz rneovim-04f2f864e270e772c6326cefdf24947f0130e492.tar.bz2 rneovim-04f2f864e270e772c6326cefdf24947f0130e492.zip |
refactor: format test/*
Diffstat (limited to 'test/functional/options/autochdir_spec.lua')
-rw-r--r-- | test/functional/options/autochdir_spec.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/functional/options/autochdir_spec.lua b/test/functional/options/autochdir_spec.lua index c75a98f35b..392c02b07e 100644 --- a/test/functional/options/autochdir_spec.lua +++ b/test/functional/options/autochdir_spec.lua @@ -11,27 +11,27 @@ describe("'autochdir'", function() local targetdir = 'test/functional/fixtures' -- By default 'autochdir' is off, thus getcwd() returns the repo root. - clear(targetdir..'/tty-test.c') + clear(targetdir .. '/tty-test.c') local rootdir = funcs.getcwd() local expected = rootdir .. '/' .. targetdir -- With 'autochdir' on, we should get the directory of tty-test.c. - clear('--cmd', 'set autochdir', targetdir..'/tty-test.c') + clear('--cmd', 'set autochdir', targetdir .. '/tty-test.c') eq(helpers.is_os('win') and expected:gsub('/', '\\') or expected, funcs.getcwd()) end) - it('is not overwritten by getwinvar() call #17609',function() + it('is not overwritten by getwinvar() call #17609', function() local curdir = string.gsub(luv.cwd(), '\\', '/') - local dir_a = curdir..'/Xtest-functional-options-autochdir.dir_a' - local dir_b = curdir..'/Xtest-functional-options-autochdir.dir_b' + local dir_a = curdir .. '/Xtest-functional-options-autochdir.dir_a' + local dir_b = curdir .. '/Xtest-functional-options-autochdir.dir_b' mkdir(dir_a) mkdir(dir_b) clear() command('set shellslash') command('set autochdir') - command('edit '..dir_a..'/file1') + command('edit ' .. dir_a .. '/file1') eq(dir_a, funcs.getcwd()) - command('lcd '..dir_b) + command('lcd ' .. dir_b) eq(dir_b, funcs.getcwd()) command('botright vnew ../file2') eq(curdir, funcs.getcwd()) |