File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rsql-mongodb" ,
3
- "version" : " 1.5.3 " ,
3
+ "version" : " 2.0.0 " ,
4
4
"description" : " Converting RSQL queries to MongoDB queries" ,
5
5
"main" : " rsql-mongodb.js" ,
6
6
"typings" : " rsql-mongodb.ts" ,
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ describe('rsql-mongodb', function () {
82
82
} ) ;
83
83
it ( "Test errors" , function ( ) {
84
84
expect ( function ( ) { rsqlMongoDB ( 'azerty' ) } ) . to . throw ( 'Wrong RSQL query. No operator found.' ) ;
85
+ expect ( function ( ) { rsqlMongoDB ( 'lastName=~do*' ) } ) . to . throw ( 'Wrong RSQL query. No operator found.' ) ;
85
86
expect ( function ( ) { rsqlMongoDB ( "name=='SELECT (CHaR(75)||CHaR(76)||CHaR(77))'" ) } ) . to . throw ( 'Wrong RSQL query. No operator found.' ) ;
86
87
expect ( function ( ) { rsqlMongoDB ( 'firstName=={ $where: [ { lastName : "doe" } ] }' ) } ) . to . throw ( 'Injection detected.' ) ;
87
88
expect ( function ( ) { rsqlMongoDB ( 'birthday==1959-21-12' ) } ) . to . throw ( 'Invalid Date.' ) ;
You can’t perform that action at this time.
0 commit comments