Add organizations to newDashboardResponse tests

pull/2295/head
Michael Desa 2017-11-13 23:37:50 -08:00
parent 05c76d3c52
commit 489127cecb
1 changed files with 3 additions and 1 deletions

View File

@ -213,6 +213,7 @@ func Test_newDashboardResponse(t *testing.T) {
{ {
name: "creates a dashboard response", name: "creates a dashboard response",
d: chronograf.Dashboard{ d: chronograf.Dashboard{
Organization: "0",
Cells: []chronograf.DashboardCell{ Cells: []chronograf.DashboardCell{
{ {
ID: "a", ID: "a",
@ -248,7 +249,8 @@ func Test_newDashboardResponse(t *testing.T) {
}, },
}, },
want: &dashboardResponse{ want: &dashboardResponse{
Templates: []templateResponse{}, Organization: "0",
Templates: []templateResponse{},
Cells: []dashboardCellResponse{ Cells: []dashboardCellResponse{
dashboardCellResponse{ dashboardCellResponse{
Links: dashboardCellLinks{ Links: dashboardCellLinks{