Selaa lähdekoodia

TC: Add missing tests for argumetns

Signed-off-by: ThedosiouTh <[email protected]>
ThedosiouTh 3 vuotta sitten
vanhempi
sitoutus
8648f30351
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. 10 0
      cmd/compatibility/convert_test.go

+ 10 - 0
cmd/compatibility/convert_test.go

@@ -43,11 +43,21 @@ func Test_convert(t *testing.T) {
 			args: []string{"--host", "tcp://1.2.3.4", "up"},
 			want: []string{"--host", "tcp://1.2.3.4", "compose", "up"},
 		},
+		{
+			name: "compose --verbose",
+			args: []string{"--verbose"},
+			want: []string{"--debug", "compose"},
+		},
 		{
 			name: "compose --version",
 			args: []string{"--version"},
 			want: []string{"compose", "version"},
 		},
+		{
+			name: "compose -v",
+			args: []string{"-v"},
+			want: []string{"compose", "version"},
+		},
 		{
 			name: "help",
 			args: []string{"-h"},