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', () => {
34
34
35
35
it ( 'handle duplicate job request' , async ( ) => {
36
36
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 (
40
39
'Duplicate request'
41
40
) ;
42
41
@@ -49,7 +48,6 @@ describe('Idempotency', () => {
49
48
}
50
49
const jobStatus = await Parse . Cloud . getJobStatus ( jobStatusId ) ;
51
50
expect ( jobStatus . get ( 'status' ) ) . toBe ( 'succeeded' ) ;
52
- expect ( jobStatus . get ( 'params' ) . startedBy ) . toBe ( 'Monty Python' ) ;
53
51
} ) ;
54
52
55
53
it ( 'handle duplicate POST / PUT request' , async ( ) => {
Original file line number Diff line number Diff line change @@ -94,14 +94,12 @@ describe('Parse Cloud', () => {
94
94
} ) ;
95
95
96
96
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' , { } ) ;
99
98
expect ( jobStatusId ) . toBeDefined ( ) ;
100
99
await waitForJobStatus ( jobStatusId , 'succeeded' ) ;
101
100
102
101
const jobStatus = await Parse . Cloud . getJobStatus ( jobStatusId ) ;
103
102
assert . equal ( jobStatus . get ( 'status' ) , 'succeeded' ) ;
104
- assert . equal ( jobStatus . get ( 'params' ) . startedBy , 'Monty Python' ) ;
105
103
} ) ;
106
104
107
105
it ( 'run long job' , async ( ) => {
You can’t perform that action at this time.
0 commit comments