diff options
author | Jun-ichi TAKIMOTO <Jun-T@users.noreply.github.com> | 2022-05-28 11:14:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-28 10:14:12 +0800 |
commit | 285e73894250204ec423495288a6c28baddd9c59 (patch) | |
tree | ea97115cc7dc5fdc0ed1a9bdce17d9bf035aceca | |
parent | 826462a8f0923926066da66d8575f6573ee3f079 (diff) | |
download | rneovim-285e73894250204ec423495288a6c28baddd9c59.tar.gz rneovim-285e73894250204ec423495288a6c28baddd9c59.tar.bz2 rneovim-285e73894250204ec423495288a6c28baddd9c59.zip |
test(unit): use setup()/teardown() in buffer_spec.lua (#18739)
-rw-r--r-- | test/unit/buffer_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/buffer_spec.lua b/test/unit/buffer_spec.lua index 833b21b00b..204d713fb7 100644 --- 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) |