aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2021-01-18 12:33:04 +0100
committerJulien Dessaux2021-01-18 12:33:04 +0100
commit926faed528bf68d9436d97f200d40101f5a2b092 (patch)
tree81a1a95290dfc5d79d438cd16b24ef49574d3d56
parentDisplay logged in status in menu (diff)
downloadshell-game-launcher-926faed528bf68d9436d97f200d40101f5a2b092.tar.gz
shell-game-launcher-926faed528bf68d9436d97f200d40101f5a2b092.tar.bz2
shell-game-launcher-926faed528bf68d9436d97f200d40101f5a2b092.zip
Improved menu display tests
-rw-r--r--client/menu_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/menu_test.go b/client/menu_test.go
index 9d7a8bc..1f70e4e 100644
--- a/client/menu_test.go
+++ b/client/menu_test.go
@@ -23,7 +23,7 @@ func TestDisplayMenu(t *testing.T) {
MenuEntries: []config.MenuEntry{
config.MenuEntry{
Key: "q",
- Label: "quit",
+ Label: "quit entry",
Action: "quit",
},
},
@@ -38,7 +38,7 @@ func TestDisplayMenu(t *testing.T) {
"\n" +
"Not logged in.\n" +
"\n" +
- "q) quit\n")
+ "q) quit entry\n")
state.displayMenu()
// back to normal state
w.Close()
@@ -60,12 +60,12 @@ func TestDisplayMenu(t *testing.T) {
MenuEntries: []config.MenuEntry{
config.MenuEntry{
Key: "w",
- Label: "wait",
+ Label: "wait entry",
Action: "wait",
},
config.MenuEntry{
Key: "q",
- Label: "quit",
+ Label: "quit entry",
Action: "quit",
},
},
@@ -80,8 +80,8 @@ func TestDisplayMenu(t *testing.T) {
"\n" +
"Logged in as: test\n" +
"\n" +
- "w) wait\n" +
- "q) quit\n")
+ "w) wait entry\n" +
+ "q) quit entry\n")
state.displayMenu()
// back to normal state
w.Close()