MCPcopy
hub / github.com/sequelize/sequelize / testsql

Function testsql

test/unit/sql/where.test.js:17–27  ·  test/unit/sql/where.test.js::testsql
(params, options, expectation)

Source from the content-addressed store, hash-verified

15describe(Support.getTestDialectTeaser(class="st">'SQL'), () => {
16 describe(class="st">'whereQuery', () => {
17 const testsql = function(params, options, expectation) {
18 if (expectation === undefined) {
19 expectation = options;
20 options = undefined;
21 }
22
23 it(util.inspect(params, { depth: 10 }) + (options && `, ${util.inspect(options)}` || class="st">''), () => {
24 const sqlOrError = _.attempt(sql.whereQuery.bind(sql), params, options);
25 return expectsql(sqlOrError, expectation);
26 });
27 };
28
29 testsql({}, {
30 default: class="st">''

Callers 1

where.test.jsFile · 0.70

Calls 5

expectsqlFunction · 0.85
inspectMethod · 0.80
whereItemQueryMethod · 0.80
defineMethod · 0.80
getWhereConditionsMethod · 0.80

Tested by

no test coverage detected