1
0
mirror of https://github.com/ddworken/hishtory.git synced 2025-03-11 05:38:11 +01:00

Fix broken help command test

This commit is contained in:
David Dworken 2022-09-24 16:18:24 -07:00
parent b63d546168
commit 616d87399f

View File

@ -1189,7 +1189,7 @@ func testHelpCommand(t *testing.T, tester shellTester) {
// Test the help command // Test the help command
out := tester.RunInteractiveShell(t, `hishtory help`) out := tester.RunInteractiveShell(t, `hishtory help`)
if !strings.HasPrefix(out, "hishtory: Better shell history\n\nSupported commands:\n") { if !strings.HasPrefix(out, "hiSHtory: Better shell history\n\nSupported commands:\n") {
t.Fatalf("expected hishtory help to contain intro, actual=%#v", out) t.Fatalf("expected hishtory help to contain intro, actual=%#v", out)
} }
out2 := tester.RunInteractiveShell(t, `hishtory -h`) out2 := tester.RunInteractiveShell(t, `hishtory -h`)