add dashboardId to test

This commit is contained in:
ryan 2018-03-23 12:35:39 +01:00
parent a58b4ff2d6
commit 2116152295

View File

@ -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{