1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:50:06 +08:00

test(mkdir): add test for mkdir plugin

This commit is contained in:
wsdjeg 2022-04-03 23:21:00 +08:00
parent 6a3d1968ab
commit bc5e24c693

17
test/plugin/mkdir.vader Normal file
View File

@ -0,0 +1,17 @@
Execute ( SpaceVim plugin: mkdir.vim ):
augroup mkdir_test
au!
autocmd BufWritePre * call SpaceVim#plugins#mkdir#CreateCurrent()
augroup END
let tempfile = tempname() . '/test/test'
exe 'e' tempfile
w
AssertEqual filereadable(tempfile), 1
bwipeout
unlet tempfile
augroup mkdir_test
au!
augroup END