mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-09 15:15:08 +02:00
Add another test for custom columns
This commit is contained in:
@ -1002,6 +1002,12 @@ func testDisplayTable(t *testing.T, tester shellTester) {
|
||||
// And check the table again
|
||||
out = hishtoryQuery(t, tester, "table")
|
||||
compareGoldens(t, out, "testDisplayTable-customColumns")
|
||||
|
||||
// And again
|
||||
tester.RunInteractiveShell(t, ` hishtory disable`)
|
||||
tester.RunInteractiveShell(t, `hishtory config-set displayed-columns Hostname 'Exit Code' Command`)
|
||||
out = hishtoryQuery(t, tester, "table")
|
||||
compareGoldens(t, out, "testDisplayTable-customColumns-2")
|
||||
}
|
||||
|
||||
func testRequestAndReceiveDbDump(t *testing.T, tester shellTester) {
|
||||
|
Reference in New Issue
Block a user