Add test to cover breakage in #82

This commit is contained in:
David Dworken 2023-05-16 17:34:25 -07:00
parent c0e56eff0d
commit 082d342b0d
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -1790,7 +1790,6 @@ func TestFish(t *testing.T) {
testutils.CompareGoldens(t, out, "TestFish-table")
}
// TODO(ddworken):Add better tests for filtering out entries
// TODO(ddworken): Run TestTui in online and offline mode
func TestTui(t *testing.T) {
@ -2400,6 +2399,9 @@ echo foo`)
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery SPACE -pipefail ENTER"})
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
testutils.CompareGoldens(t, out, "testRemoveDuplicateRows-enabled-tquery")
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery SPACE -pipefail ENTER", "Down Down", "ENTER"})
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
testutils.CompareGoldens(t, out, "testRemoveDuplicateRows-enabled-tquery-select")
}
func TestSetConfigNoCorruption(t *testing.T) {

View File

@ -0,0 +1,3 @@
-pipefail
echo foo
david@Davids-MacBook-Air hishtory %