mirror of
https://github.com/hanzoai/go-cosyvoice.git
synced 2026-09-30 21:53:53 +00:00
18 lines
351 B
Go
18 lines
351 B
Go
package cosyvoice
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestClient(t *testing.T) {
|
|
mockApiKey := "test"
|
|
client := NewClient(mockApiKey)
|
|
require.Equal(t, client.config.ApiKey, mockApiKey)
|
|
|
|
config := DefaultConfig(mockApiKey)
|
|
client = NewClientWithConfig(config)
|
|
require.Equal(t, mockApiKey, client.config.ApiKey)
|
|
}
|