mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 11:57:50 +02: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",
|
"SPACE",
|
||||||
})
|
})
|
||||||
|
|
||||||
// Compare the output with the golden file
|
// It gets stripped out
|
||||||
testutils.CompareGoldens(t, out, "TestSanitizeEscapeCodes-Output")
|
require.Contains(t, out, "Search Query: >\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: somehow test/confirm that hishtory works even if only bash/only zsh is installed
|
// 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…
x
Reference in New Issue
Block a user