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

Commit 29702fb0 by Overlook Motel

fix for failing test

1 parent f7ec6234
Showing with 4 additions and 3 deletions
...@@ -282,7 +282,7 @@ describe(Support.getTestDialectTeaser("Include"), function () { ...@@ -282,7 +282,7 @@ describe(Support.getTestDialectTeaser("Include"), function () {
{title: 'Dress'}, {title: 'Dress'},
{title: 'Bed'} {title: 'Bed'}
]).done(function () { ]).done(function () {
Product.findAll().done(callback) Product.findAll({order: [ ['id'] ]}).done(callback)
}) })
}, },
tags: function(callback) { tags: function(callback) {
...@@ -291,7 +291,7 @@ describe(Support.getTestDialectTeaser("Include"), function () { ...@@ -291,7 +291,7 @@ describe(Support.getTestDialectTeaser("Include"), function () {
{name: 'B'}, {name: 'B'},
{name: 'C'} {name: 'C'}
]).done(function () { ]).done(function () {
Tag.findAll().done(callback) Tag.findAll({order: [ ['id'] ]}).done(callback)
}) })
}, },
userProducts: ['user', 'products', function (callback, results) { userProducts: ['user', 'products', function (callback, results) {
...@@ -317,7 +317,8 @@ describe(Support.getTestDialectTeaser("Include"), function () { ...@@ -317,7 +317,8 @@ describe(Support.getTestDialectTeaser("Include"), function () {
{model: Product, include: [ {model: Product, include: [
{model: Tag} {model: Tag}
]} ]}
] ],
order: [ ['id'], [Product, 'id'] ]
}).done(function (err, user) { }).done(function (err, user) {
expect(err).not.to.be.ok expect(err).not.to.be.ok
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!