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

Commit c0e0c06c by Sascha Depold

hmm spec is failing... debugging

1 parent d7e16256
Showing with 10 additions and 4 deletions
......@@ -54,10 +54,16 @@ describe('Sequelize', function() {
it('=>executes select queries correctly', function(done) {
var sql = "INSERT INTO " + this.User.tableName + " (username) VALUES ('john')"
this.sequelize.query(sql).success(function() {
this.sequelize.query("select * from " + this.User.tableName).success(function(users) {
expect(users.map(function(u){ return u.username })).toEqual(['john'])
done()
})
this.sequelize.query("select * from " + this.User.tableName)
.success(function(users) {
expect(users.map(function(u){ return u.username })).toEqual(['john'])
done()
})
.error(function(err) {
console.log(err)
expect(err).not.toBeDefined()
done()
})
}.bind(this))
})
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!