MCPcopy Index your code
hub / github.com/sequelize/sequelize / testsql

Function testsql

test/unit/sql/order.test.js:17–30  ·  view source on GitHub ↗
(options, expectation)

Source from the content-addressed store, hash-verified

15describe(Support.getTestDialectTeaser('SQL'), () => {
16 describe('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 // models
33 const User = Support.sequelize.define('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

Used in the wild real call sites across dependent graphs

searching dependent graphs…