Skip to content

FACG2/ws-backend-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ws-backend-validation

These tests are failing!

Failing tests

All the routes are returning 200, but some of them should be returning 400. Fix them by following the below instructions.

Add the following validations

Make sure they are:

  • validated, and that the correct responses are sent if the requests fail validations
  • fully tested using Supertest. Check well formed and poorly formed post bodies.

POST /user

{
  username: String (only letters and numbers)
  password: String (with validation)
  email: String (valid emails allowed only)
  dob: Date (user must be over 18)
}

UPDATE /user

{
  username: String (only letters and numbers)
  email: String (valid emails allowed only)
  dob: Date (user must be over 18)
}

Try some others too.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published