mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-29 17:51:21 +01:00
Swap from golden test to simpler contains check
This commit is contained in:
parent
30c92dd88a
commit
393243e30e
@ -3303,8 +3303,8 @@ func TestSanitizeEscapeCodes(t *testing.T) {
|
||||
"SPACE",
|
||||
})
|
||||
|
||||
// Compare the output with the golden file
|
||||
testutils.CompareGoldens(t, out, "TestSanitizeEscapeCodes-Output")
|
||||
// It gets stripped out
|
||||
require.Contains(t, out, "Search Query: >\n")
|
||||
}
|
||||
|
||||
// TODO: somehow test/confirm that hishtory works even if only bash/only zsh is installed
|
||||
|
31
client/testdata/TestSanitizeEscapeCodes-Output
vendored
31
client/testdata/TestSanitizeEscapeCodes-Output
vendored
@ -1,31 +0,0 @@
|
||||
david@ghaction-runner-hostname hishtory % hishtory tquery
|
||||
|
||||
|
||||
|
||||
Search Query: >
|
||||
|
||||
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ Hostname CWD Timestamp Runtime Exit Code Command │
|
||||
│───────────────────────────────────────────────────────────────────────────────────────────────────────────────────│
|
||||
│ ghaction-runner-hostname ~/code/hishtory Aug 25 2024 18:52:40 PDT N/A 0 hishtory tquery │
|
||||
│ ghaction-runner-hostname ~/code/hishtory Aug 25 2024 18:52:39 PDT 45ms 0 set -eo pipefail │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
│ │
|
||||
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
hiSHtory: Search your shell history • ctrl+h help
|
Loading…
Reference in New Issue
Block a user