@@ -13,25 +13,25 @@ func Test_handleSlackCommand(t *testing.T) {
1313 s := & server {}
1414 r := & NamedRepositoryRegistry {}
1515
16- tests := []struct {
17- name string
16+ tests := []struct {
17+ name string
1818 command string
19- expect string
19+ expect string
2020 }{
2121 {
22- name : "when using missing bits" ,
22+ name : "when using missing bits" ,
2323 command : "totally wrong" ,
24- expect : "Incorrect usage, expected /gitops-commit [command] [name] [tag]" ,
24+ expect : "Incorrect usage, expected /gitops-commit [command] [name] [tag]" ,
2525 },
2626 {
27- name : "when using an invalid command" ,
27+ name : "when using an invalid command" ,
2828 command : "wrong thing v1.2.3" ,
29- expect : "Unknown command 'wrong', expected /gitops-commit [command] [name] [tag]" ,
29+ expect : "Unknown command 'wrong', expected /gitops-commit [command] [name] [tag]" ,
3030 },
3131 {
32- name : "when using a valid command " ,
32+ name : "when using a valid command " ,
3333 command : "deploy thing v1.2.3" ,
34- expect : "Unknown named repository, cannot handle \" thing\" , availabe options ()" ,
34+ expect : "Unknown named repository, cannot handle \" thing\" , availabe options ()" ,
3535 },
3636 }
3737
@@ -64,4 +64,4 @@ func Test_handleSlackCommand(t *testing.T) {
6464 })
6565 }
6666 })
67- }
67+ }
0 commit comments