diff --git a/greataped/components/api/api_test.go b/greataped/components/api/api_test.go index 5ecda23..db3b5be 100644 --- a/greataped/components/api/api_test.go +++ b/greataped/components/api/api_test.go @@ -122,6 +122,18 @@ func TestLogoutApi(test *testing.T) { } } +func TestWebfingerApi(test *testing.T) { + input := &WebfingerRequest{ + Resource: "resource", + } + + if output, err := api.Webfinger(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 9fac398..c17d996 100644 --- a/greataped/components/core/spi_manager_test.go +++ b/greataped/components/core/spi_manager_test.go @@ -225,3 +225,14 @@ func TestSpiManager_Logout(test *testing.T) { _ = result } + +func TestSpiManager_Webfinger(test *testing.T) { + manager := Conductor.SpiManager() + + result, err := manager.Webfinger("resource", nil) + if err != nil { + test.Fatal(err) + } + + _ = result +}