kopia lustrzana https://github.com/reiver/greatape
test(components): 🧪 followers retrieval
rodzic
8f0557c47a
commit
e2eceffeb4
|
@ -171,6 +171,18 @@ func TestAuthorizeInteractionApi(test *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestGetFollowersApi(test *testing.T) {
|
||||||
|
input := &GetFollowersRequest{
|
||||||
|
Username: "username",
|
||||||
|
}
|
||||||
|
|
||||||
|
if output, err := api.GetFollowers(input); err != nil {
|
||||||
|
test.Fatal(err)
|
||||||
|
} else if output == nil {
|
||||||
|
test.Fail()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//region Initialization
|
//region Initialization
|
||||||
|
|
||||||
func TestMain(main *testing.M) {
|
func TestMain(main *testing.M) {
|
||||||
|
|
|
@ -269,3 +269,14 @@ func TestSpiManager_AuthorizeInteraction(test *testing.T) {
|
||||||
|
|
||||||
_ = result
|
_ = result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestSpiManager_GetFollowers(test *testing.T) {
|
||||||
|
manager := Conductor.SpiManager()
|
||||||
|
|
||||||
|
result, err := manager.GetFollowers("username", nil)
|
||||||
|
if err != nil {
|
||||||
|
test.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
_ = result
|
||||||
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue