不要怂,就是干,撸起袖子干!

Commit 4093cd61 by Mick Hansen

use different columns for literal test

1 parent 2f4fc787
Showing with 2 additions and 2 deletions
...@@ -73,7 +73,7 @@ describe(Support.getTestDialectTeaser('Model'), function() { ...@@ -73,7 +73,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
describe('injections', function () { describe('injections', function () {
beforeEach(function () { beforeEach(function () {
this.User = this.sequelize.define('user', { this.User = this.sequelize.define('user', {
name: DataTypes.STRING
}); });
this.Group = this.sequelize.define('group', { this.Group = this.sequelize.define('group', {
...@@ -114,7 +114,7 @@ describe(Support.getTestDialectTeaser('Model'), function() { ...@@ -114,7 +114,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
it('should not throw on a literal', function () { it('should not throw on a literal', function () {
return this.User.findAll({ return this.User.findAll({
order: [ order: [
['id', this.sequelize.literal('ASC, id DESC')] ['id', this.sequelize.literal('ASC, name DESC')]
] ]
}); });
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!