Add organizations to newDashboardResponse tests
parent
05c76d3c52
commit
489127cecb
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue