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

Commit e4ee7026 by Sascha Depold

only exec prefetch spec for mysql for now

1 parent 1f1ff221
Showing with 6 additions and 2 deletions
...@@ -360,7 +360,9 @@ dialects.forEach(function(dialect) { ...@@ -360,7 +360,9 @@ dialects.forEach(function(dialect) {
}) })
}) })
it('//fetches associated objects for 1:1 associations', function(done) { if (dialect === 'mysql') {
it('fetches associated objects for 1:1 associations', function(done) {
var Task = this.sequelize.define('Task', { var Task = this.sequelize.define('Task', {
title: Sequelize.STRING title: Sequelize.STRING
}) })
...@@ -381,7 +383,7 @@ dialects.forEach(function(dialect) { ...@@ -381,7 +383,7 @@ dialects.forEach(function(dialect) {
include: [ 'Task' ] include: [ 'Task' ]
}).success(function(user) { }).success(function(user) {
expect(user.task).toBeDefined() expect(user.task).toBeDefined()
expect(user.task).toEqual(task) expect(user.task.id).toEqual(task.id)
done() done()
}) })
}) //- setTask }) //- setTask
...@@ -389,6 +391,8 @@ dialects.forEach(function(dialect) { ...@@ -389,6 +391,8 @@ dialects.forEach(function(dialect) {
}) //- User.create }) //- User.create
}) //- sequelize.sync }) //- sequelize.sync
}) })
}
}) })
}) })
}) })
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!