diff --git a/components/api/api_test.go b/components/api/api_test.go index 602a2a2..4c1b6c6 100644 --- a/components/api/api_test.go +++ b/components/api/api_test.go @@ -124,6 +124,19 @@ func TestUpdateProfileByUserApi(test *testing.T) { } } +func TestChangePasswordApi(test *testing.T) { + input := &ChangePasswordRequest{ + CurrentPassword: "current_password", + NewPassword: "new_password", + } + + if output, err := api.ChangePassword(input); err != nil { + test.Fatal(err) + } else if output == nil { + test.Fail() + } +} + func TestLogoutApi(test *testing.T) { input := &LogoutRequest{} diff --git a/components/core/spi_manager_test.go b/components/core/spi_manager_test.go index 9cd92e5..072819d 100644 --- a/components/core/spi_manager_test.go +++ b/components/core/spi_manager_test.go @@ -226,6 +226,17 @@ func TestSpiManager_UpdateProfileByUser(test *testing.T) { _ = result } +func TestSpiManager_ChangePassword(test *testing.T) { + manager := Conductor.SpiManager() + + result, err := manager.ChangePassword("current_password", "new_password", nil) + if err != nil { + test.Fatal(err) + } + + _ = result +} + func TestSpiManager_Logout(test *testing.T) { manager := Conductor.SpiManager()