Explorar o código

TC: Add missing tests for argumetns

Signed-off-by: ThedosiouTh <[email protected]>
ThedosiouTh %!s(int64=3) %!d(string=hai) anos
pai
achega
8648f30351
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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"},