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

Function testsql

test/unit/sql/select.test.js:18–31  ·  view source on GitHub ↗
(options, expectation, testFunction = it)

Source from the content-addressed store, hash-verified

16describe(Support.getTestDialectTeaser('SQL'), () => {
17 describe('select', () => {
18 const testsql = function(options, expectation, testFunction = it) {
19 const model = options.model;
20
21 testFunction(util.inspect(options, { depth: 2 }), () => {
22 return expectsql(
23 sql.selectQuery(
24 options.table || model && model.getTableName(),
25 options,
26 options.model
27 ),
28 expectation
29 );
30 });
31 };
32
33 testsql.only = (options, expectation) => testsql(options, expectation, it.only);
34

Callers 1

select.test.jsFile · 0.70

Calls 4

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

Tested by

no test coverage detected