Skip to content

Commit

Permalink
Expanded an existing test to reproduce parse-community#1452
Browse files Browse the repository at this point in the history
  • Loading branch information
mstniy committed Dec 19, 2023
1 parent cacf7fb commit 55b2dab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/__tests__/ParseObject-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,14 @@ describe('ParseObject', () => {
'objectField.number': 20,
otherField: { hello: 'world' },
});
expect(o.toJSON()).toEqual({
objectField: {
number: 20,
letter: 'a',
},
otherField: { hello: 'world' },
objectId: 'setNested',
});
});

it('can set multiple nested fields (regression test for #1450)', () => {
Expand Down

0 comments on commit 55b2dab

Please sign in to comment.