Jelajahi Sumber

add dashboardId to test

ryan 8 tahun lalu
induk
melakukan
2116152295
1 mengubah file dengan 5 tambahan dan 4 penghapusan
  1. 5 4
      pkg/api/annotations_test.go

+ 5 - 4
pkg/api/annotations_test.go

@@ -14,10 +14,11 @@ import (
 func TestAnnotationsApiEndpoint(t *testing.T) {
 	Convey("Given an annotation without a dashboard id", t, func() {
 		cmd := dtos.PostAnnotationsCmd{
-			Time:     1000,
-			Text:     "annotation text",
-			Tags:     []string{"tag1", "tag2"},
-			IsRegion: false,
+			Time:        1000,
+			Text:        "annotation text",
+			Tags:        []string{"tag1", "tag2"},
+			IsRegion:    false,
+			DashboardId: 1,
 		}
 
 		updateCmd := dtos.UpdateAnnotationsCmd{