test(components): 🧪 resend verification code

master
Xeronith 2023-06-19 11:33:44 +03:30
rodzic a5e7c8953b
commit 526e223d25
2 zmienionych plików z 23 dodań i 0 usunięć

Wyświetl plik

@ -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",

Wyświetl plik

@ -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()