File tree 2 files changed +15
-8
lines changed
2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,6 @@ describe('Cloud Code', () => {
47
47
} ) ;
48
48
} ) ;
49
49
50
- it ( 'can load cloud code as a module' , async ( ) => {
51
- process . env . npm_package_type = 'module' ;
52
- await reconfigureServer ( { cloud : './spec/cloud/cloudCodeModuleFile.js' } ) ;
53
- const result = await Parse . Cloud . run ( 'cloudCodeInFile' ) ;
54
- expect ( result ) . toEqual ( 'It is possible to define cloud code in a file.' ) ;
55
- delete process . env . npm_package_type ;
56
- } ) ;
57
-
58
50
it ( 'can load cloud code as a function' , async ( ) => {
59
51
await reconfigureServer ( {
60
52
cloud : ( ) => {
Original file line number Diff line number Diff line change @@ -39,6 +39,21 @@ runner({
39
39
console . error ( '' ) ;
40
40
process . exit ( 1 ) ;
41
41
}
42
+ if ( options [ 'liveQuery.classNames' ] ) {
43
+ options . liveQuery = options . liveQuery || { } ;
44
+ options . liveQuery . classNames = options [ 'liveQuery.classNames' ] ;
45
+ delete options [ 'liveQuery.classNames' ] ;
46
+ }
47
+ if ( options [ 'liveQuery.redisURL' ] ) {
48
+ options . liveQuery = options . liveQuery || { } ;
49
+ options . liveQuery . redisURL = options [ 'liveQuery.redisURL' ] ;
50
+ delete options [ 'liveQuery.redisURL' ] ;
51
+ }
52
+ if ( options [ 'liveQuery.redisOptions' ] ) {
53
+ options . liveQuery = options . liveQuery || { } ;
54
+ options . liveQuery . redisOptions = options [ 'liveQuery.redisOptions' ] ;
55
+ delete options [ 'liveQuery.redisOptions' ] ;
56
+ }
42
57
if ( options . cluster ) {
43
58
const numCPUs = typeof options . cluster === 'number' ? options . cluster : os . cpus ( ) . length ;
44
59
if ( cluster . isMaster ) {
You can’t perform that action at this time.
0 commit comments