mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Clean up tests with setUp and tearDown functions
This commit is contained in:
parent
a28e72e84a
commit
ba7109169d
4 changed files with 46 additions and 3 deletions
|
|
@ -6,6 +6,16 @@ oneTimeSetUp() {
|
|||
source_autosuggestions
|
||||
}
|
||||
|
||||
setUp() {
|
||||
BUFFER=''
|
||||
POSTDISPLAY=''
|
||||
CURSOR=0
|
||||
}
|
||||
|
||||
tearDown() {
|
||||
restore _zsh_autosuggest_invoke_original_widget
|
||||
}
|
||||
|
||||
testCursorMovesOutOfBuffer() {
|
||||
BUFFER='ec'
|
||||
POSTDISPLAY='ho hello'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue