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

Commit 635c81b0 by Victor Pontis

add a couple extra expectations to hasMany

1 parent be76381c
Showing with 4 additions and 2 deletions
......@@ -1540,11 +1540,13 @@ describe(Support.getTestDialectTeaser("HasMany"), function() {
}).spread(function (user, puppy) {
return user.addPuppy(puppy).return(user);
}).then(function(user) {
return user.getPuppies();
}).then(function(puppies) {
return user.getPuppies().then(function(puppies) {
var puppy = puppies[0];
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!