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

Commit 92fc796c by joshm

matching test

1 parent e08e39c7
Showing with 10 additions and 0 deletions
...@@ -2231,6 +2231,16 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -2231,6 +2231,16 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
done() done()
}) })
}) })
it("handles attributes", function(done) {
this.User.findAndCountAll({where: "id != " + this.users[0].id, attributes: ['data']}).success(function(info) {
expect(info.count).to.equal(2)
expect(Array.isArray(info.rows)).to.be.ok
expect(info.rows.length).to.equal(2)
expect(info.rows[0].selectedValues).to.not.property('username')
expect(info.rows[1].selectedValues).to.not.property('username')
done()
})
})
}) })
describe('all', function() { describe('all', function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!