Skip to content

Instantly share code, notes, and snippets.

@gintsgints
Created August 14, 2015 16:59
Show Gist options
  • Save gintsgints/ebeeec8f6f7a213b25b0 to your computer and use it in GitHub Desktop.
Save gintsgints/ebeeec8f6f7a213b25b0 to your computer and use it in GitHub Desktop.
it.only('only gets objects that fulfill options with a formatted value', function() {
return this.User.find({where: {username: 'John'}}).then(function(john) {
return john.getTasks({where: ['active = ?', true]});
}).then(function(tasks) {
expect(tasks).to.have.length(1);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment