Skip to content

Commit

Permalink
test(array): improve array test re: code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed May 23, 2023
1 parent 2ed05d3 commit edd68a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/types.array.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1906,9 +1906,11 @@ describe('types array', function() {
const intArr = [[1, 2], [3, 4]];
const doc = Test.hydrate({ intArr });

doc.intArr[0][0] = 2;
doc.intArr[1][1] = 5;
assert.deepStrictEqual(doc.getChanges(), {
$set: {
'intArr.0.0': 2,
'intArr.1.1': 5
}
});
Expand Down

0 comments on commit edd68a2

Please sign in to comment.