config accepts INITIALIZE_SLACK
This commit is contained in:
@@ -8,8 +8,8 @@ func TestNewConfig(t *testing.T) {
|
||||
switch k {
|
||||
case "PORT":
|
||||
return "1"
|
||||
case "A_B":
|
||||
return "2"
|
||||
case "INITIALIZE_SLACK":
|
||||
return "true"
|
||||
default:
|
||||
return ""
|
||||
}
|
||||
@@ -17,7 +17,7 @@ func TestNewConfig(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
} else if got.Port != 1 {
|
||||
t.Error(got)
|
||||
} else if got.AB != "2" {
|
||||
} else if !got.InitializeSlack {
|
||||
t.Error(got)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user