test(components): 🧪 followers retrieval

master
Xeronith 2022-12-08 22:12:31 +03:30
rodzic 8f0557c47a
commit e2eceffeb4
2 zmienionych plików z 23 dodań i 0 usunięć

Wyświetl plik

@ -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
func TestMain(main *testing.M) {

Wyświetl plik

@ -269,3 +269,14 @@ func TestSpiManager_AuthorizeInteraction(test *testing.T) {
_ = result
}
func TestSpiManager_GetFollowers(test *testing.T) {
manager := Conductor.SpiManager()
result, err := manager.GetFollowers("username", nil)
if err != nil {
test.Fatal(err)
}
_ = result
}