mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 00:03:58 +01:00
Update test
This commit is contained in:
parent
15bc95c560
commit
9c4f7fc5a9
@ -2910,11 +2910,12 @@ echo foo`)
|
|||||||
out = captureTerminalOutputWithComplexCommands(t, tester, []TmuxCommand{
|
out = captureTerminalOutputWithComplexCommands(t, tester, []TmuxCommand{
|
||||||
{Keys: "hishtory SPACE tquery ENTER", ExtraDelay: 1.0},
|
{Keys: "hishtory SPACE tquery ENTER", ExtraDelay: 1.0},
|
||||||
{Keys: "-pipefail", ExtraDelay: 1.0},
|
{Keys: "-pipefail", ExtraDelay: 1.0},
|
||||||
{Keys: "Down Down"},
|
{Keys: "Down Down Down"},
|
||||||
{Keys: "ENTER", ExtraDelay: 1.0},
|
{Keys: "ENTER", ExtraDelay: 1.0},
|
||||||
})
|
})
|
||||||
out = stripTuiCommandPrefix(t, out)
|
out = stripTuiCommandPrefix(t, out)
|
||||||
require.Contains(t, out, "\necho foo\n")
|
require.Contains(t, out, "echo foo\n")
|
||||||
|
require.NotContains(t, out, "hishtory tquery")
|
||||||
require.NotContains(t, out, "echo baz")
|
require.NotContains(t, out, "echo baz")
|
||||||
require.NotContains(t, out, "config-set")
|
require.NotContains(t, out, "config-set")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user