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