express-query-params
Version:
Express.js middleware implementing the API Query Spec, converting the params to SQL or a Mongo query
21 lines (17 loc) • 497 B
JavaScript
const runSuite = () => {
try {
// Testing business logic of the module
require('./lib/index.test')()
require('./lib/utils.test')()
require('./lib/format.test')()
// Testing query language flavours
require('./formats/mongo.test')()
require('./formats/sequelize.test')()
require('./formats/sql.test')()
console.log('=> Test suite passed!')
} catch (error) {
console.log('=> Test suite failed with assertion:')
console.error(error)
}
}
runSuite()