Tests: reorganization
This commit is contained in:
parent
709572ccb2
commit
c742c3a752
5 changed files with 29 additions and 22 deletions
13
test/feature/buffer.vader
Normal file
13
test/feature/buffer.vader
Normal file
|
@ -0,0 +1,13 @@
|
|||
Before:
|
||||
Startify
|
||||
|
||||
Execute (Check set options):
|
||||
AssertEqual 'startify', &filetype
|
||||
AssertEqual 'wipe', &bufhidden
|
||||
AssertEqual 'nofile', &buftype
|
||||
AssertEqual 0, &buflisted
|
||||
AssertEqual 0, &cursorcolumn
|
||||
AssertEqual 0, &cursorline
|
||||
AssertEqual 0, &list
|
||||
AssertEqual 0, &number
|
||||
AssertEqual 0, &swapfile
|
19
test/feature/mappings.vader
Normal file
19
test/feature/mappings.vader
Normal file
|
@ -0,0 +1,19 @@
|
|||
Before:
|
||||
Startify
|
||||
|
||||
Do (Open new buffer in insert "foo"):
|
||||
ifoo
|
||||
Expect (Buffer contains only "foo"):
|
||||
foo
|
||||
|
||||
Do (Open new buffer in normal mode and insert "bar"):
|
||||
eibar
|
||||
Expect (Buffer contains only "bar"):
|
||||
bar
|
||||
|
||||
Given (Buffer that contains only "quux"):
|
||||
quux
|
||||
Do (Quit Startify buffer via 'q'):
|
||||
q
|
||||
Expect (Buffer before :Startify was called):
|
||||
quux
|
Loading…
Add table
Add a link
Reference in a new issue