test(unit): use setup()/teardown() in buffer_spec.lua (#18739)

This commit is contained in:
Jun-ichi TAKIMOTO 2022-05-28 11:14:12 +09:00 committed by GitHub
parent 826462a8f0
commit 285e738942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,14 +25,14 @@ describe('buffer functions', function()
local path2 = 'file_path_test'
local path3 = 'path_test_file'
before_each(function()
setup(function()
-- create the files
io.open(path1, 'w').close()
io.open(path2, 'w').close()
io.open(path3, 'w').close()
end)
after_each(function()
teardown(function()
os.remove(path1)
os.remove(path2)
os.remove(path3)