27 lines
459 B
Go
27 lines
459 B
Go
package tribally
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/stretchr/testify/require"
|
|
"testing"
|
|
)
|
|
|
|
const (
|
|
apiKey = "830019089b50205befaeeddb93eaf651"
|
|
userEmail = "katrinaever11@gmail.com"
|
|
)
|
|
|
|
func TestBindTribally(t *testing.T) {
|
|
url, err := BindTribally(apiKey, userEmail)
|
|
require.Nil(t, err)
|
|
fmt.Println(url)
|
|
}
|
|
|
|
func TestPostUserChapter(t *testing.T) {
|
|
err := PostUserChapter(apiKey, UserChapter{
|
|
Email: userEmail,
|
|
Chapter: 1,
|
|
})
|
|
require.Nil(t, err)
|
|
}
|