@@ -106,33 +106,33 @@ describe('dataProtectorCore.getProtectedData()', () => {
106106 ) ;
107107 } ) ;
108108
109- describe ( "When calling getProtectedData for a ProtectedData that contains nested empty JSON objects" , ( ) => {
110- it (
111- 'should return the protectedData without the field corresponding to the nested empty JSON objects' ,
112- async ( ) => {
113- // --- GIVEN
114- const createdProtectedData = await dataProtectorCore . protectData ( {
115- data :
{ email :
'[email protected] ' , tag :
{ size :
10 , emptyObject :
{ } } } , 116- name : 'test getProtectedData' ,
117- } ) ;
118- await waitForSubgraphIndexing ( ) ;
109+ describe ( 'When calling getProtectedData for a ProtectedData that contains nested empty JSON objects' , ( ) => {
110+ it ( 'should return the protectedData without the field corresponding to the nested empty JSON objects' , async ( ) => {
111+ // --- GIVEN
112+ const createdProtectedData = await dataProtectorCore . protectData ( {
113+ data : {
114+ 115+ tag : { size : 10 , emptyObject : { } } ,
116+ } ,
117+ name : 'test getProtectedData' ,
118+ } ) ;
119+ await waitForSubgraphIndexing ( ) ;
119120
120- // --- WHEN
121- const result = await dataProtectorCore . getProtectedData ( {
122- protectedDataAddress : createdProtectedData . address ,
123- } ) ;
121+ // --- WHEN
122+ const result = await dataProtectorCore . getProtectedData ( {
123+ protectedDataAddress : createdProtectedData . address ,
124+ } ) ;
124125
125- // --- THEN
126- expect ( result . length ) . toEqual ( 1 ) ;
127- expect ( result [ 0 ] . name ) . toEqual ( 'test getProtectedData' ) ;
128- expect ( result [ 0 ] . schema ) . toEqual ( {
129- email : 'string' ,
130- tag : {
131- size : 'f64' ,
132- } ,
133- } ) ;
134- }
135- ) ;
126+ // --- THEN
127+ expect ( result . length ) . toEqual ( 1 ) ;
128+ expect ( result [ 0 ] . name ) . toEqual ( 'test getProtectedData' ) ;
129+ expect ( result [ 0 ] . schema ) . toEqual ( {
130+ email : 'string' ,
131+ tag : {
132+ size : 'f64' ,
133+ } ,
134+ } ) ;
135+ } ) ;
136136 } ) ;
137137
138138 describe ( 'When calling getProtectedData with a specific owner' , ( ) => {
0 commit comments