summaryrefslogtreecommitdiffstats
path: root/pkg/gui/test_mode.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-08-08 21:32:58 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-08-11 21:24:16 +1000
commit225c563c630e8771c2c6741c78e8a427b3283f58 (patch)
tree315d535574b1e1aab2696c258427b3c5dcc12b30 /pkg/gui/test_mode.go
parent77881a9c7d24bb11bc74abff35d94397fd4ccb67 (diff)
another integration test
Diffstat (limited to 'pkg/gui/test_mode.go')
-rw-r--r--pkg/gui/test_mode.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkg/gui/test_mode.go b/pkg/gui/test_mode.go
index 88e42e440..7f57a4be8 100644
--- a/pkg/gui/test_mode.go
+++ b/pkg/gui/test_mode.go
@@ -21,10 +21,15 @@ func (gui *Gui) handleTestMode() {
go func() {
time.Sleep(time.Millisecond * 100)
+ shell := &integration.ShellImpl{}
+ assert := &AssertImpl{gui: gui}
+ keys := gui.Config.GetUserConfig().Keybinding
+ input := NewInputImpl(gui, keys, assert, integration.KeyPressDelay())
+
test.Run(
- &integration.ShellImpl{},
- &InputImpl{g: gui.g, keys: gui.Config.GetUserConfig().Keybinding},
- &AssertImpl{gui: gui},
+ shell,
+ input,
+ assert,
gui.c.UserConfig.Keybinding,
)