kopia lustrzana https://github.com/reiver/greatape
test(components): 🧪 interaction authorization
rodzic
359cb2c42c
commit
8ead42a52f
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue