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

Commit fe08b54f by Mick Hansen

[fix] change order literal test to equaliy rather than IS NULL to appease mssql

1 parent 143c3eb6
Showing with 3 additions and 3 deletions
......@@ -34,7 +34,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
it('should work with order: literal()', function () {
return this.User.findAll({
order: this.sequelize.literal('email IS NOT NULL')
order: this.sequelize.literal("email = 'test@sequelizejs.com'")
}).then(function (users) {
expect(users.length).to.equal(1);
users.forEach(function (user) {
......@@ -45,7 +45,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
it('should work with order: [literal()]', function () {
return this.User.findAll({
order: [this.sequelize.literal('email IS NOT NULL')]
order: [this.sequelize.literal("email = 'test@sequelizejs.com'")]
}).then(function (users) {
expect(users.length).to.equal(1);
users.forEach(function (user) {
......@@ -57,7 +57,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
it('should work with order: [[literal()]]', function () {
return this.User.findAll({
order: [
[this.sequelize.literal('email IS NOT NULL')]
[this.sequelize.literal("email = 'test@sequelizejs.com'")]
]
}).then(function (users) {
expect(users.length).to.equal(1);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!