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

Commit 6fa8afe9 by Jan Aagaard Meier

Change check in virtual attribute check to test against truthy instead of 1 to accomodate for PG

1 parent c92ae383
Showing with 2 additions and 1 deletions
...@@ -369,7 +369,8 @@ describe(Support.getTestDialectTeaser("Model"), function () { ...@@ -369,7 +369,8 @@ describe(Support.getTestDialectTeaser("Model"), function () {
}).then(function () { }).then(function () {
return Post.find({ attributes: ['id','text',Sequelize.literal('EXISTS(SELECT 1) AS "someBoolean"')] }); return Post.find({ attributes: ['id','text',Sequelize.literal('EXISTS(SELECT 1) AS "someBoolean"')] });
}).then(function (post) { }).then(function (post) {
expect(post.get()).to.deep.equal({ id: 1, text: "text1", someBoolean: 1}); expect(post.get('someBoolean')).to.be.ok;
expect(post.get().someBoolean).to.be.ok;
}); });
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!