kopia lustrzana https://github.com/reiver/greatape
test(components): 🧪 post to inbox
rodzic
9c45d7ed7f
commit
8ce7ea668d
|
@ -225,6 +225,18 @@ func TestGetOutboxApi(test *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestPostToInboxApi(test *testing.T) {
|
||||
input := &PostToInboxRequest{
|
||||
Username: "username",
|
||||
}
|
||||
|
||||
if output, err := api.PostToInbox(input); err != nil {
|
||||
test.Fatal(err)
|
||||
} else if output == nil {
|
||||
test.Fail()
|
||||
}
|
||||
}
|
||||
|
||||
//region Initialization
|
||||
|
||||
func TestMain(main *testing.M) {
|
||||
|
|
|
@ -313,3 +313,14 @@ func TestSpiManager_GetOutbox(test *testing.T) {
|
|||
|
||||
_ = result
|
||||
}
|
||||
|
||||
func TestSpiManager_PostToInbox(test *testing.T) {
|
||||
manager := Conductor.SpiManager()
|
||||
|
||||
result, err := manager.PostToInbox("username", nil)
|
||||
if err != nil {
|
||||
test.Fatal(err)
|
||||
}
|
||||
|
||||
_ = result
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue