mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-25 14:26:04 +03:00
17 lines
310 B
Go
17 lines
310 B
Go
|
package retailcrm
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestNewConnectResponse(t *testing.T) {
|
||
|
assert.Equal(t, ConnectResponse{
|
||
|
SuccessfulResponse: SuccessfulResponse{
|
||
|
Success: true,
|
||
|
},
|
||
|
AccountURL: "https://example.com",
|
||
|
}, NewConnectResponse("https://example.com"))
|
||
|
}
|