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

Function testsql

test/unit/sql/group.test.js:13–26  ·  test/unit/sql/group.test.js::testsql
(options, expectation)

Source from the content-addressed store, hash-verified

11describe(Support.getTestDialectTeaser(class="st">'SQL'), () => {
12 describe(class="st">'group', () => {
13 const testsql = function(options, expectation) {
14 const model = options.model;
15
16 it(util.inspect(options, { depth: 2 }), () => {
17 return expectsql(
18 sql.selectQuery(
19 options.table || model && model.getTableName(),
20 options,
21 options.model
22 ),
23 expectation
24 );
25 });
26 };
27
28 const User = Support.sequelize.define(class="st">'User', {
29 name: {

Callers 1

group.test.jsFile · 0.70

Calls 4

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

Tested by

no test coverage detected