move shell into test driver
This commit is contained in:
@@ -18,7 +18,7 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
CreateFileAndAdd("file-2", "change to stash2").
|
||||
StashWithMessage("bar")
|
||||
},
|
||||
Run: func(shell *Shell, t *TestDriver, keys config.KeybindingConfig) {
|
||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
t.Views().Stash().
|
||||
Focus().
|
||||
Lines(
|
||||
|
||||
@@ -15,7 +15,7 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
shell.CreateFile("file", "content")
|
||||
shell.GitAddAll()
|
||||
},
|
||||
Run: func(shell *Shell, t *TestDriver, keys config.KeybindingConfig) {
|
||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
t.Model().StashCount(0)
|
||||
t.Model().WorkingTreeFileCount(1)
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ var StashIncludingUntrackedFiles = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
shell.CreateFile("file_2", "content")
|
||||
shell.GitAdd("file_1")
|
||||
},
|
||||
Run: func(shell *Shell, t *TestDriver, keys config.KeybindingConfig) {
|
||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
t.Model().StashCount(0)
|
||||
t.Model().WorkingTreeFileCount(2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user