Swap from golden test to simpler contains check

This commit is contained in:
David Dworken 2024-08-25 21:31:54 -07:00
parent 30c92dd88a
commit 393243e30e
No known key found for this signature in database
2 changed files with 2 additions and 33 deletions

View File

@ -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

View File

@ -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