updated tests to use s.

This commit is contained in:
Dima Smirnov
2018-12-02 15:39:14 +03:00
parent c8b9249b2b
commit dcbe9083a2

View File

@@ -946,8 +946,8 @@ User.findAll( { where : { user_id : 1 }, attributes : ['a', 'b'], include : [{ m
User.findAll( { order : s.literal( 'email =' ) } );
User.findAll( { order : [s.literal( 'email = ' + s.escape( 'test@sequelizejs.com' ) )] } );
User.findAll( { order : [['id', ';DELETE YOLO INJECTIONS']] } );
User.findAll( { order : Sequelize.random() } );
User.findAll( { order : [Sequelize.random()] } );
User.findAll( { order : s.random() } );
User.findAll( { order : [s.random()] } );
User.findAll( { include : [User], order : [[User, 'id', ';DELETE YOLO INJECTIONS']] } );
User.findAll( { include : [User], order : [['id', 'ASC NULLS LAST'], [User, 'id', 'DESC NULLS FIRST']] } );
User.findAll( { include : [{ model : User, where : { title : 'DoDat' }, include : [{ model : User }] }] } );