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

Function testsql

test/unit/sql/offset-limit.test.js:13–25  ·  view source on GitHub ↗
(options, expectation)

Source from the content-addressed store, hash-verified

11describe(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

Callers 1

Calls 3

expectsqlFunction · 0.85
inspectMethod · 0.80
addLimitAndOffsetMethod · 0.45

Tested by

no test coverage detected