mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-14 09:08:44 +02:00
Add another golden
This commit is contained in:
@ -1795,7 +1795,7 @@ func testTui_defaultFilter(t *testing.T) {
|
||||
// Run a search query, type something, and then delete the default filter
|
||||
out = stripTuiCommandPrefix(t, captureTerminalOutput(t, tester, []string{
|
||||
"hishtory SPACE tquery ENTER",
|
||||
"exit Left Left Left Left BSpace",
|
||||
"exit Left Left Left Left Left BSpace BSpace",
|
||||
}))
|
||||
testutils.CompareGoldens(t, out, "TestTui-DefaultFilter-DeletedWithText")
|
||||
}
|
||||
|
27
client/testdata/TestTui-DefaultFilter-Deleted
vendored
Normal file
27
client/testdata/TestTui-DefaultFilter-Deleted
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
Search Query:
|
||||
|
||||
┌────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname CWD Timestamp Runtime Exit Code Command │
|
||||
│────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:31 PDT 3s 1 exit 1 │
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:26 PDT 3s 0 exit 0 │
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:21 PDT 3s 2 echo 'aaaaaa bbbb' │
|
||||
│ localhost /tmp/ Oct 17 2022 21:43:16 PDT 3s 2 ls ~/ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
hiSHtory: Search your shell history • ctrl+h help
|
Reference in New Issue
Block a user