Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

populate fixtures got error in Sails test #42

Open
chenweiyj opened this issue Jan 19, 2016 · 2 comments
Open

populate fixtures got error in Sails test #42

chenweiyj opened this issue Jan 19, 2016 · 2 comments

Comments

@chenweiyj
Copy link

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
@bredikhin
Copy link
Owner

Please provide example fixture files, test code, etc.

@srhlv
Copy link

srhlv commented Feb 28, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants