mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
add some more linters
This commit is contained in:
parent
5d6d894286
commit
18f48a43d5
37 changed files with 104 additions and 60 deletions
|
@ -75,6 +75,7 @@ func TestCommitCommitObj(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, s := range scenarios {
|
||||
s := s
|
||||
t.Run(s.testName, func(t *testing.T) {
|
||||
userConfig := config.GetDefaultConfig()
|
||||
userConfig.Git.Commit.SignOff = s.configSignoff
|
||||
|
@ -109,6 +110,7 @@ func TestCommitCreateFixupCommit(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, s := range scenarios {
|
||||
s := s
|
||||
t.Run(s.testName, func(t *testing.T) {
|
||||
instance := buildCommitCommands(commonDeps{runner: s.runner})
|
||||
s.test(instance.CreateFixupCommit(s.sha))
|
||||
|
@ -147,6 +149,7 @@ func TestCommitShowCmdObj(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, s := range scenarios {
|
||||
s := s
|
||||
t.Run(s.testName, func(t *testing.T) {
|
||||
userConfig := config.GetDefaultConfig()
|
||||
userConfig.Git.DiffContextSize = s.contextSize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue