diff --git a/shopfront/shopfront_test.go b/shopfront/shopfront_test.go index c94b991..d6fd5dd 100644 --- a/shopfront/shopfront_test.go +++ b/shopfront/shopfront_test.go @@ -20,12 +20,12 @@ func TestShopfront(t *testing.T) { items, err := c.GetItems(ctx, []shopfront.ItemID{1, 2, 3, 4}, 42) require.NoError(t, err) - require.Equal(t, items, []shopfront.Item{ + require.Equal(t, []shopfront.Item{ {}, {}, {}, {}, - }) + }, items) require.NoError(t, c.RecordView(ctx, 3, 42)) require.NoError(t, c.RecordView(ctx, 2, 42)) @@ -34,12 +34,12 @@ func TestShopfront(t *testing.T) { items, err = c.GetItems(ctx, []shopfront.ItemID{1, 2, 3, 4}, 42) require.NoError(t, err) - require.Equal(t, items, []shopfront.Item{ + require.Equal(t, []shopfront.Item{ {}, {ViewCount: 2, Viewed: true}, {ViewCount: 1, Viewed: true}, {}, - }) + }, items) } func BenchmarkShopfront(b *testing.B) {