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

Commit e5bdda78 by Sascha Depold

fixed spec

1 parent af9a5a72
Showing with 5 additions and 3 deletions
......@@ -29,9 +29,11 @@ module.exports = {
User.sync({force:true}).on('success', function() {
User.create({username: 'foo', smth: null}).on('failure', function(err) {
assert.eql(err.message, "Column 'smth' cannot be null")
User.create({username: 'foo'}).on('failure', function(err) {
assert.eql(err.message, "Colusmn 'smth' cannot be null")
exit(function(){})
User.create({username: 'foo', smth: 'foo'}).on('success', function() {
User.create({username: 'foo', smth: 'bar'}).on('failure', function(err) {
assert.eql(err.message, "Duplicate entry 'foo' for key 'username'")
exit(function(){})
})
})
})
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!