feat(): adding unit test for json flag

pull/6096/head^2
Art Begolli 6 years ago
parent e0e6a7acb6
commit f3d57f6f24

@ -84,6 +84,12 @@ func TestSearchCmd(t *testing.T) {
flags: []string{"--regexp"},
err: true,
},
{
name: "search for 'alpine', expect two matches in json",
args: []string{"alpine"},
flags: []string{"--output", "json"},
expected: "[\n {\n \"name\": \"testing/alpine\",\n \"chartVersion\": \"0.2.0\",\n \"appVersion\": \"2.3.4\",\n \"description\": \"Deploy a basic Alpine Linux pod\"\n }\n]\n",
},
}
cleanup := resetEnv()

Loading…
Cancel
Save