Use getters for AppState and UserConfig instead of accessing the fields directly
This will allow us to make them private.
This commit is contained in:
@@ -10,8 +10,8 @@ var LogCmd = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
ExtraCmdArgs: []string{},
|
||||
Skip: false,
|
||||
SetupConfig: func(config *config.AppConfig) {
|
||||
config.UserConfig.Git.AllBranchesLogCmd = `echo "view1"`
|
||||
config.UserConfig.Git.AllBranchesLogCmds = []string{`echo "view2"`}
|
||||
config.GetUserConfig().Git.AllBranchesLogCmd = `echo "view1"`
|
||||
config.GetUserConfig().Git.AllBranchesLogCmds = []string{`echo "view2"`}
|
||||
},
|
||||
SetupRepo: func(shell *Shell) {},
|
||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
|
||||
Reference in New Issue
Block a user