(node:13748) UnhandledPromiseRejectionWarning: it is invalid format
(node:13748) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:13748) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:13748) UnhandledPromiseRejectionWarning: TypeError: next is not a function
(node:13748) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:13748) UnhandledPromiseRejectionWarning: it is invalid format
(node:13748) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:13748) UnhandledPromiseRejectionWarning: TypeError: next is not a function
(node:13748) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
PASS app/routes/throughput.validate.route.test.js
test validation definition
โ returns array with validations (5ms)
โ start field is not empty with message "it is mandatory" (1ms)
โ end field is not empty with message "it is mandatory" (1ms)
โ periodTime field is not empty with message "it is mandatory" (1ms)
โ periodTime field is in day or week values with message "must be a "day" or "week" values"
โ start field is valid format with message "it is invalid format" (1ms)
โ when call validator for start field with invalid date time return Promise Rejected (5ms)
โ end field is valid format with message "it is invalid format"
โ when call validator for end field with invalid date time return Promise Rejected (1ms)
Test Suites: 1 passed, 1 total
Tests: 9 passed, 9 total
Snapshots: 0 total
Time: 1.054s