Created
August 14, 2015 16:59
-
-
Save gintsgints/ebeeec8f6f7a213b25b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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