kopia lustrzana https://github.com/reiver/greatape
test(components): 🧪 get inbox
rodzic
9f954da8f1
commit
62ece351c0
|
@ -237,6 +237,18 @@ func TestPostToInboxApi(test *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestGetInboxApi(test *testing.T) {
|
||||||
|
input := &GetInboxRequest{
|
||||||
|
Username: "username",
|
||||||
|
}
|
||||||
|
|
||||||
|
if output, err := api.GetInbox(input); err != nil {
|
||||||
|
test.Fatal(err)
|
||||||
|
} else if output == nil {
|
||||||
|
test.Fail()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//region Initialization
|
//region Initialization
|
||||||
|
|
||||||
func TestMain(main *testing.M) {
|
func TestMain(main *testing.M) {
|
||||||
|
|
|
@ -324,3 +324,14 @@ func TestSpiManager_PostToInbox(test *testing.T) {
|
||||||
|
|
||||||
_ = result
|
_ = result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestSpiManager_GetInbox(test *testing.T) {
|
||||||
|
manager := Conductor.SpiManager()
|
||||||
|
|
||||||
|
result, err := manager.GetInbox("username", nil)
|
||||||
|
if err != nil {
|
||||||
|
test.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
_ = result
|
||||||
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue