tribally report logic
This commit is contained in:
25
internal/pkg/tribally/tribally_test.go
Normal file
25
internal/pkg/tribally/tribally_test.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package tribally
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/stretchr/testify/require"
|
||||
"testing"
|
||||
)
|
||||
|
||||
const (
|
||||
apiKey = "088847b7172bdffa1eb564a581bcf903"
|
||||
)
|
||||
|
||||
func TestBindTribally(t *testing.T) {
|
||||
url, err := BindTribally(apiKey, "lhj168os@gmail.com")
|
||||
require.Nil(t, err)
|
||||
fmt.Println(url)
|
||||
}
|
||||
|
||||
func TestPostUserChapter(t *testing.T) {
|
||||
err := PostUserChapter(apiKey, UserChapter{
|
||||
Email: "lhj168os@gmail.com",
|
||||
Chapter: 3,
|
||||
})
|
||||
require.Nil(t, err)
|
||||
}
|
||||
Reference in New Issue
Block a user