When no body is passed, the validation should still be fired. Previous line of code assumed that some sort of body was being passed. Error was TypeError: Cannot read property 'fields' of null. This would hit on the first checkBody() call. With this fix, when no body is passed, the validation returns as intended.
Coverage remained the same when pulling 57d1b4eb713bf8ec8af430859dff321a715c8d21 on technicallyjosh:master into 4b990d35d8d511aa9d835c8110a7f906c0fe1cd0 on RocksonZeta:master.
When no body is passed, the validation should still be fired. Previous line of code assumed that some sort of body was being passed. Error was
TypeError: Cannot read property 'fields' of null
. This would hit on the firstcheckBody()
call. With this fix, when no body is passed, the validation returns as intended.