(options, expectation)
| 11 | describe(Support.getTestDialectTeaser('SQL'), () => { |
| 12 | describe('offset/limit', () => { |
| 13 | const testsql = function(options, expectation) { |
| 14 | const model = options.model; |
| 15 | |
| 16 | it(util.inspect(options, { depth: 2 }), () => { |
| 17 | return expectsql( |
| 18 | sql.addLimitAndOffset( |
| 19 | options, |
| 20 | model |
| 21 | ), |
| 22 | expectation |
| 23 | ); |
| 24 | }); |
| 25 | }; |
| 26 | |
| 27 | testsql({ |
| 28 | limit: 10, //when no order by present, one is automagically prepended, test its existence |
no test coverage detected