mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 20:07:52 +02:00
Add test to cover breakage in #82
This commit is contained in:
parent
c0e56eff0d
commit
082d342b0d
@ -1790,7 +1790,6 @@ func TestFish(t *testing.T) {
|
|||||||
testutils.CompareGoldens(t, out, "TestFish-table")
|
testutils.CompareGoldens(t, out, "TestFish-table")
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(ddworken):Add better tests for filtering out entries
|
|
||||||
// TODO(ddworken): Run TestTui in online and offline mode
|
// TODO(ddworken): Run TestTui in online and offline mode
|
||||||
|
|
||||||
func TestTui(t *testing.T) {
|
func TestTui(t *testing.T) {
|
||||||
@ -2400,6 +2399,9 @@ echo foo`)
|
|||||||
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery SPACE -pipefail ENTER"})
|
out = captureTerminalOutput(t, tester, []string{"hishtory SPACE tquery SPACE -pipefail ENTER"})
|
||||||
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
|
out = strings.TrimSpace(strings.Split(out, "hishtory tquery")[1])
|
||||||
testutils.CompareGoldens(t, out, "testRemoveDuplicateRows-enabled-tquery")
|
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) {
|
func TestSetConfigNoCorruption(t *testing.T) {
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
-pipefail
|
||||||
|
echo foo
|
||||||
|
david@Davids-MacBook-Air hishtory %
|
Loading…
x
Reference in New Issue
Block a user