feat(): adding unit test for json flag

Signed-off-by: Art Begolli <artbegolli@gmail.com>
pull/6096/head^2
Art Begolli 6 years ago
parent fb3ee38dc6
commit 5b90613fc2

@ -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