config accepts INITIALIZE_SLACK

This commit is contained in:
Bel LaPointe
2024-04-11 17:01:45 -06:00
parent 967d33b03b
commit 052a093ad7
2 changed files with 11 additions and 5 deletions

View File

@@ -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)
}
}