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

Commit b594a57d by sdepold

fixed spec

1 parent 7cf8e14b
Showing with 6 additions and 1 deletions
...@@ -194,6 +194,11 @@ describe('DAOFactory', function() { ...@@ -194,6 +194,11 @@ describe('DAOFactory', function() {
}) })
it('allows sql logging', function() { it('allows sql logging', function() {
setup({
name: {type: Sequelize.STRING, unique: true},
smth: {type: Sequelize.STRING, allowNull: false}
})
Helpers.async(function(done) { Helpers.async(function(done) {
User User
.create({ name: 'Fluffy Bunny', smth: 'else' }) .create({ name: 'Fluffy Bunny', smth: 'else' })
...@@ -489,7 +494,7 @@ describe('DAOFactory', function() { ...@@ -489,7 +494,7 @@ describe('DAOFactory', function() {
User.all().on('success', function(users) { User.all().on('success', function(users) {
done() done()
expect(users.length).toEqual(2) expect(users.length).toEqual(2)
}).on('failure', function(err) { console.log(err) }) }).on('error', function(err) { console.log(err) })
}) })
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!