mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-24 14:01:46 +02:00
Add another test for custom columns
This commit is contained in:
parent
cdc5421a7b
commit
dc5fd19c9e
@ -1002,6 +1002,12 @@ func testDisplayTable(t *testing.T, tester shellTester) {
|
|||||||
// And check the table again
|
// And check the table again
|
||||||
out = hishtoryQuery(t, tester, "table")
|
out = hishtoryQuery(t, tester, "table")
|
||||||
compareGoldens(t, out, "testDisplayTable-customColumns")
|
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) {
|
func testRequestAndReceiveDbDump(t *testing.T, tester shellTester) {
|
||||||
|
4
client/lib/goldens/testDisplayTable-customColumns-2
Normal file
4
client/lib/goldens/testDisplayTable-customColumns-2
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Hostname Exit Code Command
|
||||||
|
Davids-MacBook-Air.local 0 hishtory query table
|
||||||
|
localhost 3 table_cmd2
|
||||||
|
localhost 2 table_cmd1
|
Loading…
x
Reference in New Issue
Block a user