不要怂,就是干,撸起袖子干!

Commit 9ce683e2 by wenyuxiang

add test case for `does not modify the passed arguments - count`

1 parent a578ff2e
Showing with 9 additions and 1 deletions
......@@ -1486,7 +1486,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
})
})
it('does not modify the passed arguments', function (done) {
it('does not modify the passed arguments - find', function (done) {
var options = { where: ['specialkey = ?', 'awesome']}
this.UserPrimary.find(options).success(function(user) {
......@@ -1494,6 +1494,14 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
done()
})
})
it('does not modify the passed arguments - count', function (done) {
var options = { where: ['specialkey = ?', 'awesome']}
this.UserPrimary.count(options).success(function(count) {
expect(options).to.deep.equal({ where: ['specialkey = ?', 'awesome']})
done()
})
})
it('doesn\'t throw an error when entering in a non integer value for a specified primary field', function(done) {
this.UserPrimary.find('a string').success(function(user) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!