@@ -37,7 +37,7 @@ describe('Cloud Code Logger', () => {
37
37
// Note that helpers takes care of logout.
38
38
// see helpers.js:afterEach
39
39
40
- it_id ( '02d53b97-3ec7-46fb-abb6-176fd6e85590' ) ( 'should expose log to functions' , ( ) => {
40
+ it_id ( '02d53b97-3ec7-46fb-abb6-176fd6e85590' ) ( it ) ( 'should expose log to functions' , ( ) => {
41
41
const spy = spyOn ( Config . get ( 'test' ) . loggerController , 'log' ) . and . callThrough ( ) ;
42
42
Parse . Cloud . define ( 'loggerTest' , req => {
43
43
req . log . info ( 'logTest' , 'info log' , { info : 'some log' } ) ;
@@ -67,7 +67,7 @@ describe('Cloud Code Logger', () => {
67
67
} ) ;
68
68
} ) ;
69
69
70
- it_id ( '768412f5-d32f-4134-89a6-08949781a6c0' ) ( 'trigger should obfuscate password' , done => {
70
+ it_id ( '768412f5-d32f-4134-89a6-08949781a6c0' ) ( it ) ( 'trigger should obfuscate password' , done => {
71
71
Parse . Cloud . beforeSave ( Parse . User , req => {
72
72
return req . object ;
73
73
} ) ;
@@ -82,7 +82,7 @@ describe('Cloud Code Logger', () => {
82
82
. then ( null , e => done . fail ( e ) ) ;
83
83
} ) ;
84
84
85
- it_id ( '3c394047-272e-4728-9d02-9eaa660d2ed2' ) ( 'should expose log to trigger' , done => {
85
+ it_id ( '3c394047-272e-4728-9d02-9eaa660d2ed2' ) ( it ) ( 'should expose log to trigger' , done => {
86
86
Parse . Cloud . beforeSave ( 'MyObject' , req => {
87
87
req . log . info ( 'beforeSave MyObject' , 'info log' , { info : 'some log' } ) ;
88
88
req . log . error ( 'beforeSave MyObject' , 'error log' , {
@@ -120,7 +120,7 @@ describe('Cloud Code Logger', () => {
120
120
expect ( truncatedString . length ) . toBe ( 1015 ) ; // truncate length + the string '... (truncated)'
121
121
} ) ;
122
122
123
- it_id ( '4a009b1f-9203-49ca-8d48-5b45f4eedbdf' ) ( 'should truncate input and result of long lines' , done => {
123
+ it_id ( '4a009b1f-9203-49ca-8d48-5b45f4eedbdf' ) ( it ) ( 'should truncate input and result of long lines' , done => {
124
124
const longString = fs . readFileSync ( loremFile , 'utf8' ) ;
125
125
Parse . Cloud . define ( 'aFunction' , req => {
126
126
return req . params ;
@@ -138,7 +138,7 @@ describe('Cloud Code Logger', () => {
138
138
. then ( null , e => done . fail ( e ) ) ;
139
139
} ) ;
140
140
141
- it_id ( '9857e15d-bb18-478d-8a67-fdaad3e89565' ) ( 'should log an afterSave' , done => {
141
+ it_id ( '9857e15d-bb18-478d-8a67-fdaad3e89565' ) ( it ) ( 'should log an afterSave' , done => {
142
142
Parse . Cloud . afterSave ( 'MyObject' , ( ) => { } ) ;
143
143
new Parse . Object ( 'MyObject' )
144
144
. save ( )
@@ -151,7 +151,7 @@ describe('Cloud Code Logger', () => {
151
151
. then ( null , e => done . fail ( e ) ) ;
152
152
} ) ;
153
153
154
- it_id ( 'ec13a296-f8b1-4fc6-985a-3593462edd9c' ) ( 'should log a denied beforeSave' , done => {
154
+ it_id ( 'ec13a296-f8b1-4fc6-985a-3593462edd9c' ) ( it ) ( 'should log a denied beforeSave' , done => {
155
155
Parse . Cloud . beforeSave ( 'MyObject' , ( ) => {
156
156
throw 'uh oh!' ;
157
157
} ) ;
@@ -174,7 +174,7 @@ describe('Cloud Code Logger', () => {
174
174
} ) ;
175
175
} ) ;
176
176
177
- it_id ( '3e0caa45-60d6-41af-829a-fd389710c132' ) ( 'should log cloud function success' , done => {
177
+ it_id ( '3e0caa45-60d6-41af-829a-fd389710c132' ) ( it ) ( 'should log cloud function success' , done => {
178
178
Parse . Cloud . define ( 'aFunction' , ( ) => {
179
179
return 'it worked!' ;
180
180
} ) ;
@@ -189,7 +189,7 @@ describe('Cloud Code Logger', () => {
189
189
} ) ;
190
190
} ) ;
191
191
192
- it_id ( '8088de8a-7cba-4035-8b05-4a903307e674' ) ( 'should log cloud function execution using the custom log level' , async done => {
192
+ it_id ( '8088de8a-7cba-4035-8b05-4a903307e674' ) ( it ) ( 'should log cloud function execution using the custom log level' , async done => {
193
193
Parse . Cloud . define ( 'aFunction' , ( ) => {
194
194
return 'it worked!' ;
195
195
} ) ;
@@ -260,7 +260,7 @@ describe('Cloud Code Logger', () => {
260
260
expect ( calls ) . toEqual ( { beforeSave : 'warn' , afterSave : undefined } ) ;
261
261
} ) ;
262
262
263
- it_id ( '97e0eafa-cde6-4a9a-9e53-7db98bacbc62' ) ( 'should log cloud function failure' , done => {
263
+ it_id ( '97e0eafa-cde6-4a9a-9e53-7db98bacbc62' ) ( it ) ( 'should log cloud function failure' , done => {
264
264
Parse . Cloud . define ( 'aFunction' , ( ) => {
265
265
throw 'it failed!' ;
266
266
} ) ;
@@ -311,7 +311,7 @@ describe('Cloud Code Logger', () => {
311
311
. then ( null , e => done . fail ( JSON . stringify ( e ) ) ) ;
312
312
} ) . pend ( 'needs more work.....' ) ;
313
313
314
- it_id ( 'b86e8168-8370-4730-a4ba-24ca3016ad66' ) ( 'cloud function should obfuscate password' , done => {
314
+ it_id ( 'b86e8168-8370-4730-a4ba-24ca3016ad66' ) ( it ) ( 'cloud function should obfuscate password' , done => {
315
315
Parse . Cloud . define ( 'testFunction' , ( ) => {
316
316
return 'verify code success' ;
317
317
} ) ;
0 commit comments