Skip to content

Commit

Permalink
test(types): add static/instance members test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
joe223 committed Nov 22, 2021
1 parent f75851c commit 4fb9ba0
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion types/test/sequelize.ts
@@ -1,4 +1,4 @@
import { Config, Sequelize, Model, QueryTypes, ModelCtor } from 'sequelize';
import { Config, Sequelize, Model, QueryTypes, ModelCtor, Op } from 'sequelize';
import { Fn } from 'sequelize/lib/utils';

Sequelize.useCLS({
Expand All @@ -20,6 +20,24 @@ export const sequelize = new Sequelize({
}
});

// static members
Sequelize.fn('max', Sequelize.col('age'))
Sequelize.literal('1-2')
Sequelize.cast('123', 'integer')
Sequelize.and()
Sequelize.or()
Sequelize.json('data.id')
Sequelize.where(Sequelize.col("ABS"), Op.is, null);

// instance members
sequelize.fn('max', sequelize.col('age'))
sequelize.literal('1-2')
sequelize.cast('123', 'integer')
sequelize.and()
sequelize.or()
sequelize.json('data.id')
sequelize.where(sequelize.col("ABS"), Op.is, null);

const databaseName = sequelize.getDatabaseName();

const conn = sequelize.connectionManager;
Expand Down

0 comments on commit 4fb9ba0

Please sign in to comment.