test(components): 🧪 get outbox

master
Xeronith 2022-12-20 16:50:59 +03:30
rodzic 265de276e0
commit 713d294344
2 zmienionych plików z 23 dodań i 0 usunięć

Wyświetl plik

@ -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
func TestMain(main *testing.M) {

Wyświetl plik

@ -302,3 +302,14 @@ func TestSpiManager_PostToOutbox(test *testing.T) {
_ = result
}
func TestSpiManager_GetOutbox(test *testing.T) {
manager := Conductor.SpiManager()
result, err := manager.GetOutbox("username", nil)
if err != nil {
test.Fatal(err)
}
_ = result
}