neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 285e73894250204ec423495288a6c28baddd9c59
parent 826462a8f0923926066da66d8575f6573ee3f079
Author: Jun-ichi TAKIMOTO <Jun-T@users.noreply.github.com>
Date:   Sat, 28 May 2022 11:14:12 +0900

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


Diffstat:
Mtest/unit/buffer_spec.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/unit/buffer_spec.lua b/test/unit/buffer_spec.lua @@ -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)