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

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