(options, expectation)
| 16 | describe(Support.getTestDialectTeaser(class="st">'SQL'), () => { |
| 17 | describe(class="st">'select', () => { |
| 18 | const testsql = function(options, expectation) { |
| 19 | const model = options.model; |
| 20 | |
| 21 | it(util.inspect(options, { depth: 2 }), () => { |
| 22 | return expectsql( |
| 23 | sql.selectQuery( |
| 24 | options.table || model && model.getTableName(), |
| 25 | options, |
| 26 | options.model |
| 27 | ), |
| 28 | expectation |
| 29 | ); |
| 30 | }); |
| 31 | }; |
| 32 | |
| 33 | testsql({ |
| 34 | table: class="st">'User', |
no test coverage detected