mirror of
				https://github.com/photoprism/photoprism.git
				synced 2025-10-31 20:22:55 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			535 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			535 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package commands
 | |
| 
 | |
| import (
 | |
| 	"strings"
 | |
| 	"testing"
 | |
| 
 | |
| 	"github.com/stretchr/testify/assert"
 | |
| )
 | |
| 
 | |
| func TestUsersLegacyCommand(t *testing.T) {
 | |
| 	t.Run("All", func(t *testing.T) {
 | |
| 		// Run command with test context.
 | |
| 		output, err := RunWithTestContext(UsersLegacyCommand, []string{""})
 | |
| 
 | |
| 		// Check command output for plausibility.
 | |
| 		//t.Logf(output)
 | |
| 		assert.NoError(t, err)
 | |
| 		assert.Contains(t, strings.Replace(output, " ", "", -1), strings.Replace("│ ID │ UID │ Name │ User │ Email │ Admin │ Created At │", " ", "", -1))
 | |
| 	})
 | |
| }
 | 
