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

Commit 635c81b0 by Victor Pontis

add a couple extra expectations to hasMany

1 parent be76381c
Showing with 6 additions and 4 deletions
...@@ -1540,11 +1540,13 @@ describe(Support.getTestDialectTeaser("HasMany"), function() { ...@@ -1540,11 +1540,13 @@ describe(Support.getTestDialectTeaser("HasMany"), function() {
}).spread(function (user, puppy) { }).spread(function (user, puppy) {
return user.addPuppy(puppy).return(user); return user.addPuppy(puppy).return(user);
}).then(function(user) { }).then(function(user) {
return user.getPuppies(); return user.getPuppies().then(function(puppies) {
}).then(function(puppies) { var puppy = puppies[0];
var puppy = puppies[0];
expect(puppy).to.be.defined; expect(puppy).to.be.defined;
expect(puppy.rawAttributes.userId).to.be.ok
expect(puppy.userId).to.equal(user.id)
});
}); });
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!