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

Commit 41a9810f by Daniel Durante

Added more to the #create dao-validations test.

1 parent 71a0d785
Showing with 4 additions and 9 deletions
......@@ -290,19 +290,14 @@ describe(Support.getTestDialectTeaser("DaoValidator"), function() {
self.Task.create({something: 1}).success(function(task) {
project.setTask(task).success(function(task) {
expect(task.ProjectId).to.not.be.null
done()
task.setProject(project).success(function(project) {
expect(project.ProjectId).to.not.be.null
done()
})
})
})
})
})
it('correctly throws an error using create method ', function(done) {
var self = this
this.Project.create({name: 'nope'}).error(function(err) {
expect(err).to.have.ownProperty('name')
done()
})
})
})
it('correctly validates using custom validation methods', function(done) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!