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 Feb 16, 2022
1 parent d084ac9 commit ce41389
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 @@ -659,6 +659,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 increment a nested field', () => {
Expand Down

0 comments on commit ce41389

Please sign in to comment.