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

Commit fd4aee58 by Jan Aagaard Meier

massing var statement for parent in has-many.spec

1 parent 349416e8
Showing with 1 additions and 2 deletions
......@@ -108,6 +108,7 @@ describe('HasMany', function() {
})
})
var parent
Helpers.async(function(done) {
Comment.create({ content: 'parentComment' }).success(function(p) {
parent = p
......@@ -117,11 +118,9 @@ describe('HasMany', function() {
Helpers.async(function(done) {
Comment.create({ content: 'child1' }).success(function(child1) {
Comment.find({where: { content: 'parentComment' }}).success(function(parent) {
child1.setParent(parent).success(function() {
done()
})
})
})
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!