compile message for Fixed status

- better logging
This commit is contained in:
Matej Kramny
2017-02-06 23:05:39 -08:00
parent 1b93730121
commit c04128ce36
7 changed files with 80 additions and 23 deletions

15
config_test.go Normal file
View File

@@ -0,0 +1,15 @@
package cachet
import (
"testing"
)
func TestGetMonitorType(t *testing.T) {
if monType := GetMonitorType(""); monType != "http" {
t.Error("monitor type `` should default to http")
}
if mt := GetMonitorType("HTTP"); mt != "http" {
t.Error("does not return correct monitor type")
}
}