From dc8079f5819d949e133ef6b750b2f7bffcde2db3 Mon Sep 17 00:00:00 2001 From: Azareal Date: Mon, 21 Jan 2019 22:37:05 +1000 Subject: [PATCH] Tests should build now. --- misc_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misc_test.go b/misc_test.go index c6b6514c..370fe847 100644 --- a/misc_test.go +++ b/misc_test.go @@ -1055,7 +1055,7 @@ func TestSlugs(t *testing.T) { func TestWidgets(t *testing.T) { _, err := common.Widgets.Get(1) recordMustNotExist(t, err, "There shouldn't be any widgets by default") - widgets := common.Docks.RightSidebar + widgets := common.Docks.RightSidebar.Items expect(t, len(widgets) == 0, fmt.Sprintf("RightSidebar should have 0 items, not %d", len(widgets))) widget := &common.Widget{Position: 0, Side: "rightSidebar", Type: "simple", Enabled: true, Location: "global"} @@ -1072,7 +1072,7 @@ func TestWidgets(t *testing.T) { expect(t, widget2.Enabled, "not enabled") expect(t, widget2.Location == widget.Location, "wrong location") - widgets = common.Docks.RightSidebar + widgets = common.Docks.RightSidebar.Items expect(t, len(widgets) == 1, fmt.Sprintf("RightSidebar should have 1 item, not %d", len(widgets))) expect(t, widgets[0].Position == widget.Position, "wrong position") expect(t, widgets[0].Side == widget.Side, "wrong side") @@ -1093,7 +1093,7 @@ func TestWidgets(t *testing.T) { expect(t, !widget2.Enabled, "not enabled") expect(t, widget2.Location == widget.Location, "wrong location") - widgets = common.Docks.RightSidebar + widgets = common.Docks.RightSidebar.Items expect(t, len(widgets) == 1, fmt.Sprintf("RightSidebar should have 1 item, not %d", len(widgets))) expect(t, widgets[0].Position == widget.Position, "wrong position") expect(t, widgets[0].Side == widget.Side, "wrong side") @@ -1106,7 +1106,7 @@ func TestWidgets(t *testing.T) { _, err = common.Widgets.Get(1) recordMustNotExist(t, err, "There shouldn't be any widgets anymore") - widgets = common.Docks.RightSidebar + widgets = common.Docks.RightSidebar.Items expect(t, len(widgets) == 0, fmt.Sprintf("RightSidebar should have 0 items, not %d", len(widgets))) }