We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43be9ff commit 603be05Copy full SHA for 603be05
test/object.js
@@ -67,7 +67,7 @@ describe('Objects', function(){
67
it('should validate failed.', function(done){
68
var TestObject = AV.Object.extend('TestObject', {
69
validate: function (attrs, options){
70
- return { code: 1, message: 'test' };
+ return new Error('test');
71
}
72
});
73
var testObject = new TestObject();
0 commit comments