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

Commit 50fea7b0 by Mick Hansen

check for err.message instead of just err

1 parent f22db806
Showing with 1 additions and 1 deletions
...@@ -322,7 +322,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -322,7 +322,7 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
User.sync({ force: true }).success(function() { User.sync({ force: true }).success(function() {
User.create({username: 'tobi', email: 'tobi@tobi.me'}).success(function() { User.create({username: 'tobi', email: 'tobi@tobi.me'}).success(function() {
User.create({username: 'tobi', email: 'tobi@tobi.me'}).error(function(err) { User.create({username: 'tobi', email: 'tobi@tobi.me'}).error(function(err) {
expect(err).to.equal('User and email must be unique') expect(err.message).to.equal('User and email must be unique')
done() done()
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!