2022-11-24 13:56:03 +02:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/config"
|
|
|
|
. "github.com/jesseduffield/lazygit/pkg/integration/components"
|
|
|
|
)
|
|
|
|
|
|
|
|
var RemoteNamedStar = NewIntegrationTest(NewIntegrationTestArgs{
|
|
|
|
Description: "Having a config remote.*",
|
2023-05-21 09:00:29 +02:00
|
|
|
ExtraCmdArgs: []string{},
|
2022-11-24 13:56:03 +02:00
|
|
|
Skip: false,
|
|
|
|
SetupRepo: func(shell *Shell) {
|
|
|
|
shell.
|
|
|
|
SetConfig("remote.*.prune", "true").
|
|
|
|
CreateNCommits(2)
|
|
|
|
},
|
|
|
|
SetupConfig: func(cfg *config.AppConfig) {},
|
2022-12-27 12:47:37 +02:00
|
|
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
2022-12-26 02:12:56 +02:00
|
|
|
// here we're just asserting that we haven't panicked upon starting lazygit
|
2022-12-27 13:52:20 +02:00
|
|
|
t.Views().Commits().
|
|
|
|
Lines(
|
2023-06-03 07:12:31 +02:00
|
|
|
AnyString(),
|
|
|
|
AnyString(),
|
2022-12-27 13:52:20 +02:00
|
|
|
)
|
2022-11-24 13:56:03 +02:00
|
|
|
},
|
|
|
|
})
|