16 lines
294 B
Go
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")
|
|
}
|
|
}
|