1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-19 00:28:03 +02:00

rename helpers to components

This commit is contained in:
Jesse Duffield
2022-08-12 09:19:39 +10:00
parent de84b6c4b9
commit b8d9443999
13 changed files with 33 additions and 36 deletions

View File

@ -2,19 +2,19 @@ package commit
import (
"github.com/jesseduffield/lazygit/pkg/config"
"github.com/jesseduffield/lazygit/pkg/integration/helpers"
"github.com/jesseduffield/lazygit/pkg/integration/components"
)
var Commit = helpers.NewIntegrationTest(helpers.NewIntegrationTestArgs{
var Commit = components.NewIntegrationTest(components.NewIntegrationTestArgs{
Description: "Staging a couple files and committing",
ExtraCmdArgs: "",
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
SetupRepo: func(shell *helpers.Shell) {
SetupRepo: func(shell *components.Shell) {
shell.CreateFile("myfile", "myfile content")
shell.CreateFile("myfile2", "myfile2 content")
},
Run: func(shell *helpers.Shell, input *helpers.Input, assert *helpers.Assert, keys config.KeybindingConfig) {
Run: func(shell *components.Shell, input *components.Input, assert *components.Assert, keys config.KeybindingConfig) {
assert.CommitCount(0)
input.Select()