@bitovi/sequelize-querystring-parser
Advanced tools
Comparing version
{ | ||
"name": "@bitovi/sequelize-querystring-parser", | ||
"version": "0.2.1-pre.0", | ||
"version": "0.2.1", | ||
"description": "", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@bitovi/querystring-parser": "^0.7.1-pre.0", | ||
"@bitovi/querystring-parser": "^0.7.1", | ||
"sequelize": "^6.21.2" | ||
@@ -23,0 +23,0 @@ }, |
@@ -324,2 +324,11 @@ const { Op } = require("sequelize"); | ||
title: | ||
"should parse array of strings correctly with the $like operator - beginning of string", | ||
parameters: [{ LIKE: ["#name", "john", "jane"] }, []], | ||
expectedResults: { | ||
errors: [], | ||
results: { where: { name: { [Op.like]: ["john", "jane"] } } }, | ||
}, | ||
}, | ||
{ | ||
title: | ||
"should parse strings correctly with the $ilike operator - end of string", | ||
@@ -343,2 +352,11 @@ parameters: [{ ILIKE: ["#name", "%NE"] }, []], | ||
title: | ||
"should parse array of strings correctly with the $ilike operator - beginning of string", | ||
parameters: [{ ILIKE: ["#name", "john", "jane"] }, []], | ||
expectedResults: { | ||
errors: [], | ||
results: { where: { name: { [Op.iLike]: ["john", "jane"] } } }, | ||
}, | ||
}, | ||
{ | ||
title: | ||
"should parse strings correctly with the $ilike operator - contains string", | ||
@@ -345,0 +363,0 @@ parameters: [{ ILIKE: ["#name", "%An%"] }, []], |
40549
1.52%1302
1.4%