Skip to content

Commit

Permalink
test: remove unnecessary comments re: CR
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 4, 2025
1 parent 40358bb commit 180bf95
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/types.map.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1168,14 +1168,11 @@ describe('Map', function() {
let doc1 = new Test({ name: 'name1', test_map: new Map() });
await doc1.save();

// 1. Refresh the document from the db
doc1 = await Test.findOne({ _id: doc1._id });

// 2. Modify the document (add a new key in the test_map map)
doc1.test_map.set('key1', []);
await doc1.save();

// 3. Now, the document is wrong in the db and we cannot access the test_map anymore.
doc1 = await Test.findOne({ _id: doc1._id });
assert.deepStrictEqual(doc1.toObject().test_map, new Map([['key1', []]]));

Expand Down

0 comments on commit 180bf95

Please sign in to comment.