Browse files

add failing test for null/undefined setter

  • Loading branch information...
1 parent e02b438 commit 89a968b54b05e856d5ed6d900f5a50445b074181 @aheckmann aheckmann committed Mar 31, 2011
Showing with 11 additions and 4 deletions.
  1. +11 −4 test/model.test.js
View
15 test/model.test.js
@@ -2834,9 +2834,16 @@ module.exports = {
T.findById(t.id, function (err, t) {
should.strictEqual(err, null);
t.nest.st.should.eql("jsconf rules");
- db.close();
- })
- })
- })
+ t.nest.yep.should.eql("it does");
+
+ t.nest = null;
+ t.save(function (err) {
+ should.strictEqual(err, null);
+ should.strictEqual(t.doc.nest, null);
+ db.close();
+ });
+ });
+ });
+ });
}
};

0 comments on commit 89a968b

Please sign in to comment.