test(components): 🧪 post to inbox

master
Xeronith 2022-12-22 20:17:52 +03:30
rodzic 9c45d7ed7f
commit 8ce7ea668d
2 zmienionych plików z 23 dodań i 0 usunięć

Wyświetl plik

@ -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) {

Wyświetl plik

@ -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
}