We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee82f9a commit 7e5dbaeCopy full SHA for 7e5dbae
rook/src/domain/email_verification.rs
@@ -187,4 +187,12 @@ mod tests {
187
assert_eq!(code.expose_secret().len(), 6);
188
assert!(code.expose_secret().chars().all(|c| c.is_digit(10)));
189
}
190
+
191
+ #[test]
192
+ fn test_create_email_verification() {
193
+ let email = "test@example.com";
194
+ let verification = EmailVerification::new(email.to_string());
195
+ assert_eq!(verification.email, email);
196
+ assert!(verification.expires_at > verification.created_at);
197
+ }
198
0 commit comments