kopia lustrzana https://github.com/reiver/greatape
test(components): 🧪 resend verification code
rodzic
a5e7c8953b
commit
526e223d25
|
@ -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",
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue