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

Function testsql

test/unit/sql/order.test.js:17–30  ·  test/unit/sql/order.test.js::testsql
(options, expectation)

Source from the content-addressed store, hash-verified

15describe(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', {

Callers 1

order.test.jsFile · 0.70

Calls 4

expectsqlFunction · 0.85
inspectMethod · 0.80
selectQueryMethod · 0.80
getTableNameMethod · 0.80

Tested by

no test coverage detected