mirror of
				https://github.com/docker/compose.git
				synced 2025-10-27 01:03:48 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			261 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			261 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package commands
 | |
| 
 | |
| import (
 | |
| 	"testing"
 | |
| 
 | |
| 	"gotest.tools/v3/assert"
 | |
| )
 | |
| 
 | |
| func TestUnknownCommand(t *testing.T) {
 | |
| 	root := NewRootCmd(nil)
 | |
| 	_, _, err := root.Find([]string{"unknown_command"})
 | |
| 	assert.Error(t, err, "unknown command \"unknown_command\" for \"ecs\"")
 | |
| }
 |