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

Function testsql

test/unit/sql/select.test.js:18–31  ·  test/unit/sql/select.test.js::testsql
(options, expectation)

Source from the content-addressed store, hash-verified

16describe(Support.getTestDialectTeaser(class="st">'SQL'), () => {
17 describe(class="st">'select', () => {
18 const testsql = function(options, expectation) {
19 const model = options.model;
20
21 it(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({
34 table: class="st">'User',

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