I want my vow to have access to outerDocs and innerDocs from my topics but it doesn't.
'ASYNC TOPIC': {
topic: function() {
aModel.find({}, this.callback);
},
'NESTED ASYNC TOPIC': {
topic: function(outerDocs) {
anotherModel.find({}, this.callback(null, innerDocs, outerDocs));
},
'SHOULD HAVE ACCESS TO BOTH SETS OF DOCS': function(err, innerDocs, outerDocs) {
console.log(err, innerDocs, outerDocs);
return assert.equal(1, 1);
}
}
What am I doing wrong?