mirror of
https://github.com/yusufipk/RememberMe.git
synced 2026-09-11 19:06:06 +00:00
created(tests) created tests for person route
This commit is contained in:
@@ -114,7 +114,7 @@ const Person = mongoose.model("Person", personSchema);
|
||||
function validatePerson(value) {
|
||||
const schema = Joi.object({
|
||||
name: Joi.string().min(3).max(50).required(),
|
||||
place: Joi.string().min(3).max(50).required(true),
|
||||
place: Joi.string().min(3).max(50).required(),
|
||||
contact: Joi.object({
|
||||
phone: Joi.string().min(5).max(20),
|
||||
email: Joi.string().email().min(5).max(255),
|
||||
|
||||
Reference in New Issue
Block a user