(params, options, expectation)
| 15 | describe(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">'' |
no test coverage detected