From 8a471d418841280053788f80b7a1c420c9fd225c Mon Sep 17 00:00:00 2001 From: mtojek Date: Wed, 13 Oct 2021 10:11:46 +0200 Subject: [PATCH] Fix tests --- packages/package_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/package_test.go b/packages/package_test.go index c65c64c1e..f22799414 100644 --- a/packages/package_test.go +++ b/packages/package_test.go @@ -56,8 +56,8 @@ var packageTests = []struct { Conditions: &Conditions{ Kibana: &KibanaConditions{Version: ">=1.2.3 <=4.5.6"}, }, + Categories: []string{"custom", "foo"}, }, - Categories: []string{"custom", "foo"}, }, false, "invalid category ", @@ -67,8 +67,8 @@ var packageTests = []struct { BasePackage: BasePackage{ Title: &title, Description: "my description", + Categories: []string{"custom", "web"}, }, - Categories: []string{"custom", "web"}, }, false, "missing format_version", @@ -78,8 +78,8 @@ var packageTests = []struct { BasePackage: BasePackage{ Title: &title, Description: "my description", + Categories: []string{"custom", "web"}, }, - Categories: []string{"custom", "web"}, FormatVersion: "1.0", }, false, @@ -91,8 +91,8 @@ var packageTests = []struct { Title: &title, Description: "my description", Version: "1.0", + Categories: []string{"custom", "web"}, }, - Categories: []string{"custom", "web"}, FormatVersion: "1.0.0", }, false, @@ -104,8 +104,8 @@ var packageTests = []struct { Title: &title, Description: "my description", Version: "1.2.3", + Categories: []string{"custom", "web"}, }, - Categories: []string{"custom", "web"}, FormatVersion: "1.0.0", }, true,