From 442633825f755bcc56d9ef4ff04a61658d15cc37 Mon Sep 17 00:00:00 2001 From: Diamond Lewis Date: Sat, 8 Feb 2025 14:17:04 -0600 Subject: [PATCH] fix: Cannot pass `useMasterKey: false` to `Parse.Cloud.run` --- src/Cloud.ts | 4 ++-- src/__tests__/Cloud-test.js | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Cloud.ts b/src/Cloud.ts index 0df7ae95d..83ce78c59 100644 --- a/src/Cloud.ts +++ b/src/Cloud.ts @@ -37,8 +37,8 @@ export function run(name: string, data: any, options: RequestOptions): Promise { it('run passes options', () => { Cloud.run('myfunction', {}, { useMasterKey: false }); - expect(CoreManager.getCloudController().run.mock.calls[0]).toEqual(['myfunction', {}, {}]); + expect(CoreManager.getCloudController().run.mock.calls[0]).toEqual([ + 'myfunction', + {}, + { useMasterKey: false }, + ]); Cloud.run('myfunction', {}, { useMasterKey: true });