mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
move shell into test driver
This commit is contained in:
parent
78b495f50a
commit
c5050ecabd
39 changed files with 108 additions and 131 deletions
|
@ -63,7 +63,7 @@ func (self *fakeGuiDriver) View(viewName string) *gocui.View {
|
|||
func TestAssertionFailure(t *testing.T) {
|
||||
test := NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Description: unitTestDescription,
|
||||
Run: func(shell *Shell, t *TestDriver, keys config.KeybindingConfig) {
|
||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
t.press("a")
|
||||
t.press("b")
|
||||
t.Model().CommitCount(2)
|
||||
|
@ -78,7 +78,7 @@ func TestAssertionFailure(t *testing.T) {
|
|||
func TestManualFailure(t *testing.T) {
|
||||
test := NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Description: unitTestDescription,
|
||||
Run: func(shell *Shell, t *TestDriver, keys config.KeybindingConfig) {
|
||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
t.Fail("blah")
|
||||
},
|
||||
})
|
||||
|
@ -90,7 +90,7 @@ func TestManualFailure(t *testing.T) {
|
|||
func TestSuccess(t *testing.T) {
|
||||
test := NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Description: unitTestDescription,
|
||||
Run: func(shell *Shell, t *TestDriver, keys config.KeybindingConfig) {
|
||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
t.press("a")
|
||||
t.press("b")
|
||||
t.Model().CommitCount(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue