Commit 1feba31

Karn Wong <[email protected]>
2024-06-08 13:29:31
add test for shouldideploytoday
1 parent 42a17f2
Changed files (1)
cmd/misc/shouldideploytoday_test.go
@@ -0,0 +1,16 @@
+package misc
+
+import (
+	"reflect"
+	"testing"
+)
+
+func TestShouldIDeployToday(t *testing.T) {
+	response, err := ShouldIDeployToday()
+	if err != nil {
+		t.Errorf("ShouldIDeployToday() error = %v", err)
+
+	} else if reflect.TypeOf(response.Message).Kind() != reflect.String {
+		t.Errorf("ShouldIDeployToday() does not return a string")
+	}
+}