From 526e223d25ebf30e9b430ad11e846234cdfa231c Mon Sep 17 00:00:00 2001 From: Xeronith Date: Mon, 19 Jun 2023 11:33:44 +0330 Subject: [PATCH] test(components): :test_tube: resend verification code --- components/api/api_test.go | 12 ++++++++++++ components/core/spi_manager_test.go | 11 +++++++++++ 2 files changed, 23 insertions(+) diff --git a/components/api/api_test.go b/components/api/api_test.go index a42521b..55be45d 100644 --- a/components/api/api_test.go +++ b/components/api/api_test.go @@ -71,6 +71,18 @@ func TestSignupApi(test *testing.T) { } } +func TestResendVerificationCodeApi(test *testing.T) { + input := &ResendVerificationCodeRequest{ + Email: "email", + } + + if output, err := api.ResendVerificationCode(input); err != nil { + test.Fatal(err) + } else if output == nil { + test.Fail() + } +} + func TestVerifyApi(test *testing.T) { input := &VerifyRequest{ Email: "email", diff --git a/components/core/spi_manager_test.go b/components/core/spi_manager_test.go index defe63f..ac5dbfe 100644 --- a/components/core/spi_manager_test.go +++ b/components/core/spi_manager_test.go @@ -182,6 +182,17 @@ func TestSpiManager_Signup(test *testing.T) { _ = result } +func TestSpiManager_ResendVerificationCode(test *testing.T) { + manager := Conductor.SpiManager() + + result, err := manager.ResendVerificationCode("email", nil) + if err != nil { + test.Fatal(err) + } + + _ = result +} + func TestSpiManager_Verify(test *testing.T) { manager := Conductor.SpiManager()