From ab423dc9cea9f5aa80e90e31820810d9c6efadf4 Mon Sep 17 00:00:00 2001 From: David Cheung Date: Tue, 26 Apr 2016 17:05:09 -0400 Subject: [PATCH] fixup! Test validation should inherit to submodels --- test/model.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/model.test.js b/test/model.test.js index 43f5d3f7..10f9a500 100644 --- a/test/model.test.js +++ b/test/model.test.js @@ -36,6 +36,7 @@ describe('Model / PersistedModel', function() { var joe = new User({ email: 'joe@joe.com' }); var joe2 = new User({ email: 'joe@joe.com' }); + joe.save(function() { joe2.save(function(err) { assert(err, 'should get a validation error');