Files
cachet-monitor/config_test.go
Matej Kramny c04128ce36 compile message for Fixed status
- better logging
2017-02-06 23:05:39 -08:00

16 lines
294 B
Go

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