File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff 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 ( ) => {
Original file line number Diff line number Diff 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 ( ) => {
You can’t perform that action at this time.
0 commit comments