barrels
barrels copied to clipboard
populate fixtures got error in Sails test
When I use this library to populate fixture data for my sails app, I got error as follows.
model[attr] = that.idMap[joined][item[attr]-1];
^
TypeError: Cannot read property '0' of undefined
Please provide example fixture files, test code, etc.
This may means you didn't add fixture file name into loadOrder argument. Just debugged same.
barrels.populate(loadOrder, function(err) {
done(err, sails);
});
I think there is lack of logging in module.