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

Add tests for include as child of a hierarchy #28

Open
overlookmotel opened this issue Sep 12, 2015 · 1 comment
Open

Add tests for include as child of a hierarchy #28

overlookmotel opened this issue Sep 12, 2015 · 1 comment
Labels

Comments

@overlookmotel
Copy link
Owner

This feature works, but would be good to have specific tests for it.

@leroydev
Copy link
Contributor

Just to be sure I understand correctly, is this issue about validating that include is applied correctly to childs of the fetched model?

So for example:

this.folder.findAll({hierarchy: true, include: [{
  model: this.drive
}]).then(function(folders) {
  var folder = folders[0];
  expect(folder.children[0].drive).to.be.ok;
  expect(folder.children[0].drive.name).to.equal(this.drives.b.name);
});

Repository owner deleted a comment from thangnd238 Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants