kopia lustrzana https://github.com/reiver/greatape
test(components): 🧪 following retrieval
rodzic
b1d9011c8c
commit
d60612d3b5
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue