@@ -37,7 +37,7 @@ describe('Cloud Code Logger', () => {
3737 // Note that helpers takes care of logout.
3838 // see helpers.js:afterEach
3939
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' , ( ) => {
4141 const spy = spyOn ( Config . get ( 'test' ) . loggerController , 'log' ) . and . callThrough ( ) ;
4242 Parse . Cloud . define ( 'loggerTest' , req => {
4343 req . log . info ( 'logTest' , 'info log' , { info : 'some log' } ) ;
@@ -67,7 +67,7 @@ describe('Cloud Code Logger', () => {
6767 } ) ;
6868 } ) ;
6969
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 => {
7171 Parse . Cloud . beforeSave ( Parse . User , req => {
7272 return req . object ;
7373 } ) ;
@@ -82,7 +82,7 @@ describe('Cloud Code Logger', () => {
8282 . then ( null , e => done . fail ( e ) ) ;
8383 } ) ;
8484
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 => {
8686 Parse . Cloud . beforeSave ( 'MyObject' , req => {
8787 req . log . info ( 'beforeSave MyObject' , 'info log' , { info : 'some log' } ) ;
8888 req . log . error ( 'beforeSave MyObject' , 'error log' , {
@@ -120,7 +120,7 @@ describe('Cloud Code Logger', () => {
120120 expect ( truncatedString . length ) . toBe ( 1015 ) ; // truncate length + the string '... (truncated)'
121121 } ) ;
122122
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 => {
124124 const longString = fs . readFileSync ( loremFile , 'utf8' ) ;
125125 Parse . Cloud . define ( 'aFunction' , req => {
126126 return req . params ;
@@ -138,7 +138,7 @@ describe('Cloud Code Logger', () => {
138138 . then ( null , e => done . fail ( e ) ) ;
139139 } ) ;
140140
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 => {
142142 Parse . Cloud . afterSave ( 'MyObject' , ( ) => { } ) ;
143143 new Parse . Object ( 'MyObject' )
144144 . save ( )
@@ -151,7 +151,7 @@ describe('Cloud Code Logger', () => {
151151 . then ( null , e => done . fail ( e ) ) ;
152152 } ) ;
153153
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 => {
155155 Parse . Cloud . beforeSave ( 'MyObject' , ( ) => {
156156 throw 'uh oh!' ;
157157 } ) ;
@@ -174,7 +174,7 @@ describe('Cloud Code Logger', () => {
174174 } ) ;
175175 } ) ;
176176
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 => {
178178 Parse . Cloud . define ( 'aFunction' , ( ) => {
179179 return 'it worked!' ;
180180 } ) ;
@@ -189,7 +189,7 @@ describe('Cloud Code Logger', () => {
189189 } ) ;
190190 } ) ;
191191
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 => {
193193 Parse . Cloud . define ( 'aFunction' , ( ) => {
194194 return 'it worked!' ;
195195 } ) ;
@@ -260,7 +260,7 @@ describe('Cloud Code Logger', () => {
260260 expect ( calls ) . toEqual ( { beforeSave : 'warn' , afterSave : undefined } ) ;
261261 } ) ;
262262
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 => {
264264 Parse . Cloud . define ( 'aFunction' , ( ) => {
265265 throw 'it failed!' ;
266266 } ) ;
@@ -311,7 +311,7 @@ describe('Cloud Code Logger', () => {
311311 . then ( null , e => done . fail ( JSON . stringify ( e ) ) ) ;
312312 } ) . pend ( 'needs more work.....' ) ;
313313
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 => {
315315 Parse . Cloud . define ( 'testFunction' , ( ) => {
316316 return 'verify code success' ;
317317 } ) ;
0 commit comments