mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 13:18:59 +08:00
Fix undo pexpect test
The assertions were satisfied even though we never triggered any undo.
This commit is contained in:
parent
50d93cced1
commit
d1a4b4bc73
|
@ -12,12 +12,14 @@ send, sendline, sleep, expect_prompt, expect_re, expect_str = (
|
|||
)
|
||||
expect_prompt()
|
||||
|
||||
sendline("bind Undo undo; bind Redo redo")
|
||||
sendline("set -g fish_autosuggestion_enabled 0")
|
||||
sendline("bind U,n,d,o undo; bind R,e,d,o redo")
|
||||
expect_prompt()
|
||||
|
||||
send("echo word")
|
||||
expect_str("echo word")
|
||||
expect_str("echo word") # Not sure why we get this twice.
|
||||
expect_str("echo word")
|
||||
expect_str("echo word")
|
||||
|
||||
send("Undo")
|
||||
expect_str("echo")
|
||||
|
|
Loading…
Reference in New Issue
Block a user