diff --git a/greataped/components/api/api_test.go b/greataped/components/api/api_test.go index b70739c..c187d90 100644 --- a/greataped/components/api/api_test.go +++ b/greataped/components/api/api_test.go @@ -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) { diff --git a/greataped/components/core/spi_manager_test.go b/greataped/components/core/spi_manager_test.go index f317c7f..cdf45d3 100644 --- a/greataped/components/core/spi_manager_test.go +++ b/greataped/components/core/spi_manager_test.go @@ -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 +}