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

Commit 48437f3e by Seth Samuel

Test fix

1 parent 95d5ebac
Showing with 2 additions and 10 deletions
......@@ -1310,11 +1310,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
return this.User.create({username : "Peter", secretValue : "42"})
.then(function(user){
try{
expect(self.User.destroy({where : {secretValue : "42"}})).to.throw(Error, "Model is not paranoid");
}catch (ex){
}
expect(function(){self.User.restore({where : {secretValue : "42"}});}).to.throw(Error, "Model is not paranoid");
})
})
......
......@@ -1804,11 +1804,7 @@ describe(Support.getTestDialectTeaser("DAO"), function () {
return this.User.create({username : "Peter", secretValue : "42"})
.then(function(user){
try{
expect(user.destroy()).to.throw(Error, "Model is not paranoid");
}catch (ex){
}
expect(function(){user.restore();}).to.throw(Error, "Model is not paranoid");
})
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!