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

Commit 72d80934 by Jan Aagaard Meier

added options to specify whitelist when creating

1 parent ba9e5e46
Showing with 4 additions and 4 deletions
......@@ -98,8 +98,8 @@ module.exports = (function() {
var updatedAtAttr = this.__options.underscored ? 'updated_at' : 'updatedAt'
if(this.__options.timestamps && this.hasOwnProperty(updatedAtAttr)) {
var now = new Date()
this[updatedAtAttr] = now
var now = new Date()
this[updatedAtAttr] = now
values[updatedAtAttr] = now
}
......
......@@ -425,8 +425,8 @@ describe('DAO', function() {
Helpers.async(function(done) {
setTimeout(function() {
user.save().success(function() {
expect(updatedAt.getTime()).toBeLessThan(user.updatedAt.getTime())
done()
expect(updatedAt.getTime()).toBeLessThan(user.updatedAt.getTime())
done()
})
}, 10)
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!