File tree Expand file tree Collapse file tree 2 files changed +26
-26
lines changed Expand file tree Collapse file tree 2 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -21,31 +21,31 @@ const masterKeyOptions = {
21
21
} ;
22
22
23
23
describe ( 'JobSchedule' , ( ) => {
24
- beforeEach ( async ( ) => {
25
- const jobs = await request (
26
- Object . assign (
27
- {
28
- url : Parse . serverURL + '/cloud_code/jobs' ,
29
- } ,
30
- masterKeyOptions
31
- )
32
- ) ;
33
- if ( jobs . data . length ) {
34
- await Promise . all (
35
- jobs . data . map ( ( { objectId } ) =>
36
- request (
37
- Object . assign (
38
- {
39
- method : 'DELETE' ,
40
- url : `${ Parse . serverURL } /cloud_code/jobs/${ objectId } ` ,
41
- } ,
42
- masterKeyOptions
43
- )
44
- )
45
- )
46
- ) ;
47
- }
48
- } ) ;
24
+ // beforeEach(async () => {
25
+ // const jobs = await request(
26
+ // Object.assign(
27
+ // {
28
+ // url: Parse.serverURL + '/cloud_code/jobs',
29
+ // },
30
+ // masterKeyOptions
31
+ // )
32
+ // );
33
+ // if (jobs.data.length) {
34
+ // await Promise.all(
35
+ // jobs.data.map(({ objectId }) =>
36
+ // request(
37
+ // Object.assign(
38
+ // {
39
+ // method: 'DELETE',
40
+ // url: `${Parse.serverURL}/cloud_code/jobs/${objectId}`,
41
+ // },
42
+ // masterKeyOptions
43
+ // )
44
+ // )
45
+ // )
46
+ // );
47
+ // }
48
+ // });
49
49
it ( 'should create _JobSchedule with masterKey' , done => {
50
50
const jobSchedule = new Parse . Object ( '_JobSchedule' ) ;
51
51
jobSchedule . set ( {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ describe('rate limit', () => {
21
21
} ) ;
22
22
23
23
it ( 'can limit cloud functions with user session token' , async ( ) => {
24
- await Parse . User . signUp ( 'rateLimitMyUser ' , 'password' ) ;
24
+ await Parse . User . signUp ( 'myUser ' , 'password' ) ;
25
25
Parse . Cloud . define ( 'test' , ( ) => 'Abc' ) ;
26
26
await reconfigureServer ( {
27
27
rateLimit : [
You can’t perform that action at this time.
0 commit comments