Skip to content

Commit 1874b22

Browse files
committed
Expanded the regression test
1 parent 46f302c commit 1874b22

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec/ParseAPI.spec.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -698,20 +698,21 @@ describe('miscellaneous', function () {
698698
expect(object instanceof Parse.Object).toBeTruthy();
699699
if (triggerTime == 0) {
700700
// Create
701-
expect(object.get('a')).toEqual({ b: { c: 0 } });
701+
expect(object.get('a')).toEqual({ b: { c: 0 }, d: 0 });
702702
} else if (triggerTime == 1) {
703703
// Update
704-
expect(object.get('a')).toEqual({ b: { c: 1 } });
704+
expect(object.get('a')).toEqual({ b: { c: 1 }, d: 2 });
705705
} else {
706706
throw new Error();
707707
}
708708
triggerTime++;
709709
});
710710

711711
const obj = new Parse.Object('GameScore');
712-
obj.set('a', { b: { c: 0 } });
712+
obj.set('a', { b: { c: 0 }, d: 0 });
713713
await obj.save();
714714
obj.set('a.b.c', 1);
715+
obj.set('a.d', 2);
715716
await obj.save();
716717
// Make sure the checking has been triggered
717718
expect(triggerTime).toBe(2);

0 commit comments

Comments
 (0)