kopia lustrzana https://github.com/reiver/greatape
test(components): 🧪 get outbox
rodzic
265de276e0
commit
713d294344
|
@ -213,6 +213,18 @@ func TestPostToOutboxApi(test *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestGetOutboxApi(test *testing.T) {
|
||||||
|
input := &GetOutboxRequest{
|
||||||
|
Username: "username",
|
||||||
|
}
|
||||||
|
|
||||||
|
if output, err := api.GetOutbox(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) {
|
||||||
|
|
|
@ -302,3 +302,14 @@ func TestSpiManager_PostToOutbox(test *testing.T) {
|
||||||
|
|
||||||
_ = result
|
_ = result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestSpiManager_GetOutbox(test *testing.T) {
|
||||||
|
manager := Conductor.SpiManager()
|
||||||
|
|
||||||
|
result, err := manager.GetOutbox("username", nil)
|
||||||
|
if err != nil {
|
||||||
|
test.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
_ = result
|
||||||
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue