Browse files

add failing test

adding multiple properties on previously null objects fails
with 'Error: have conflicting mods in update'
  • Loading branch information...
1 parent edafcf6 commit ee5950bdef43b36c613ab7b6d10d1dbfb0fa9e7c @aheckmann aheckmann committed Mar 31, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/model.test.js
View
5 test/model.test.js
@@ -2814,7 +2814,8 @@ module.exports = {
var schema = new Schema({
nest: {
- st: String
+ st: String
+ , yep: String
}
});
@@ -2826,7 +2827,7 @@ module.exports = {
t.save(function (err) {
should.strictEqual(err, null);
- t.nest = { st: "jsconf rules" };
+ t.nest = { st: "jsconf rules", yep: "it does" };
t.save(function (err) {
should.strictEqual(err, null);

0 comments on commit ee5950b

Please sign in to comment.