labtime/internal/monitors/httpmonitor_test.go

17 lines
281 B
Go
Raw Normal View History

2024-09-23 23:46:12 +02:00
package monitors
import "testing"
func TestHTTPMonitor_ID(t *testing.T) {
monitor := &HTTPMonitor{
Label: "example",
}
expectedID := "example"
actualID := monitor.ID()
if actualID != expectedID {
t.Errorf("expected ID to be %s, but got %s", expectedID, actualID)
}
}