Skip to content

Commit 57b3a81

Browse files
committed
Fixed postgres test by saveArgumentsByValue
1 parent 00fb3b6 commit 57b3a81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/CloudCode.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,8 @@ describe('Cloud Code', () => {
14811481

14821482
it('beforeSave should not sanitize database', async done => {
14831483
const { adapter } = Config.get(Parse.applicationId).database;
1484-
spyOn(adapter, 'findOneAndUpdate').and.callThrough();
1484+
const spy = spyOn(adapter, 'findOneAndUpdate').and.callThrough();
1485+
spy.calls.saveArgumentsByValue();
14851486

14861487
let count = 0;
14871488
Parse.Cloud.beforeSave('CloudIncrementNested', req => {

0 commit comments

Comments
 (0)