test(components): 🧪 interaction authorization

master
Xeronith 2022-12-06 11:50:35 +03:30
rodzic 359cb2c42c
commit 8ead42a52f
2 zmienionych plików z 23 dodań i 0 usunięć

Wyświetl plik

@ -159,6 +159,18 @@ func TestFollowActorApi(test *testing.T) {
}
}
func TestAuthorizeInteractionApi(test *testing.T) {
input := &AuthorizeInteractionRequest{
Uri: "uri",
}
if output, err := api.AuthorizeInteraction(input); err != nil {
test.Fatal(err)
} else if output == nil {
test.Fail()
}
}
//region Initialization
func TestMain(main *testing.M) {

Wyświetl plik

@ -258,3 +258,14 @@ func TestSpiManager_FollowActor(test *testing.T) {
_ = result
}
func TestSpiManager_AuthorizeInteraction(test *testing.T) {
manager := Conductor.SpiManager()
result, err := manager.AuthorizeInteraction("uri", nil)
if err != nil {
test.Fatal(err)
}
_ = result
}