Skip to content

Commit 90c6b69

Browse files
committed
fix
1 parent 8bedabd commit 90c6b69

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

integration/test/IdempotencyTest.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ describe('Idempotency', () => {
3434

3535
it('handle duplicate job request', async () => {
3636
DuplicateRequestId('1234');
37-
const params = { startedBy: 'Monty Python' };
38-
const jobStatusId = await Parse.Cloud.startJob('CloudJob1', params);
39-
await expectAsync(Parse.Cloud.startJob('CloudJob1', params)).toBeRejectedWithError(
37+
const jobStatusId = await Parse.Cloud.startJob('CloudJob1', {});
38+
await expectAsync(Parse.Cloud.startJob('CloudJob1', {})).toBeRejectedWithError(
4039
'Duplicate request'
4140
);
4241

@@ -49,7 +48,6 @@ describe('Idempotency', () => {
4948
}
5049
const jobStatus = await Parse.Cloud.getJobStatus(jobStatusId);
5150
expect(jobStatus.get('status')).toBe('succeeded');
52-
expect(jobStatus.get('params').startedBy).toBe('Monty Python');
5351
});
5452

5553
it('handle duplicate POST / PUT request', async () => {

integration/test/ParseCloudTest.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,12 @@ describe('Parse Cloud', () => {
9494
});
9595

9696
it('run job', async () => {
97-
const params = { startedBy: 'Monty Python' };
98-
const jobStatusId = await Parse.Cloud.startJob('CloudJob1', params);
97+
const jobStatusId = await Parse.Cloud.startJob('CloudJob1', {});
9998
expect(jobStatusId).toBeDefined();
10099
await waitForJobStatus(jobStatusId, 'succeeded');
101100

102101
const jobStatus = await Parse.Cloud.getJobStatus(jobStatusId);
103102
assert.equal(jobStatus.get('status'), 'succeeded');
104-
assert.equal(jobStatus.get('params').startedBy, 'Monty Python');
105103
});
106104

107105
it('run long job', async () => {

0 commit comments

Comments
 (0)