test(components): 🧪 following retrieval

master
Xeronith 2022-12-12 19:47:16 +03:30
rodzic b1d9011c8c
commit d60612d3b5
2 zmienionych plików z 23 dodań i 0 usunięć

Wyświetl plik

@ -183,6 +183,18 @@ func TestGetFollowersApi(test *testing.T) {
}
}
func TestGetFollowingApi(test *testing.T) {
input := &GetFollowingRequest{
Username: "username",
}
if output, err := api.GetFollowing(input); err != nil {
test.Fatal(err)
} else if output == nil {
test.Fail()
}
}
//region Initialization
func TestMain(main *testing.M) {

Wyświetl plik

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