test(components): 🧪 get inbox

master
Xeronith 2023-01-04 13:23:13 +03:30
rodzic 9f954da8f1
commit 62ece351c0
2 zmienionych plików z 23 dodań i 0 usunięć

Wyświetl plik

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

Wyświetl plik

@ -324,3 +324,14 @@ func TestSpiManager_PostToInbox(test *testing.T) {
_ = result
}
func TestSpiManager_GetInbox(test *testing.T) {
manager := Conductor.SpiManager()
result, err := manager.GetInbox("username", nil)
if err != nil {
test.Fatal(err)
}
_ = result
}