-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.0.0 release, added #25 and documentation revamp
- Loading branch information
colthreepv
committed
Jun 29, 2016
1 parent
6f3dd0b
commit f556e93
Showing
5 changed files
with
57 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "express-validation", | ||
"version": "0.6.0", | ||
"version": "1.0.0", | ||
"author": "Andrew Keig <[email protected]>", | ||
"description": "express-validation is a middleware that validates the body, params, query, headers and cookies of a request and returns a response with errors; if any of the configured validation rules fail.", | ||
"homepage": "https://github.com/andrewkeig/express-validation", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ describe('validate body', function () { | |
|
||
describe('when the request contains an invalid payload', function () { | ||
|
||
it('should return a 400 ok response and a single error', function (done) { | ||
it('should return a 400 response and a single error', function (done) { | ||
|
||
var login = { | ||
email: 'andrew.keiggmail.com', | ||
|
@@ -49,7 +49,7 @@ describe('validate body', function () { | |
|
||
describe('when the request has a missing item in payload', function () { | ||
|
||
it('should return a 400 ok response and a single error', function (done) { | ||
it('should return a 400 response and a single error', function (done) { | ||
|
||
var login = { | ||
email: '[email protected]', | ||
|
@@ -72,7 +72,7 @@ describe('validate body', function () { | |
|
||
describe('when the request has multiple missing items in payload', function () { | ||
|
||
it('should return a 400 ok response and two errors', function (done) { | ||
it('should return a 400 response and two errors', function (done) { | ||
|
||
var login = { | ||
email: '', | ||
|
@@ -97,7 +97,7 @@ describe('validate body', function () { | |
|
||
describe('when the request has extra items in payload', function () { | ||
|
||
it('should return a 400 ok response and one error', function (done) { | ||
it('should return a 400 response and one error', function (done) { | ||
|
||
var login = { | ||
email: '[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters