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

Commit 1829c219 by José Moreira

paranoidClause problem without timestamps: unit for PoC

1 parent 7c8bf549
Showing with 19 additions and 0 deletions
...@@ -39,6 +39,25 @@ describe(Support.getTestDialectTeaser("Paranoid"), function () { ...@@ -39,6 +39,25 @@ describe(Support.getTestDialectTeaser("Paranoid"), function () {
}) })
it('paranoid with timestamps: false should be ignored / not crash', function (done) {
var S = this.sequelize,
Test = S.define('Test',{
name: DataTypes.STRING
},{
timestamps: false,
paranoid: true
});
S.sync({ force: true }).done(function () {
Test.find(1).done(function ( err ) {
expect( err ).to.be.not.ok
done()
})
})
})
it( 'test if default required behavior is marked as false', function ( done ) { it( 'test if default required behavior is marked as false', function ( done ) {
var A = this.A, var A = this.A,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!