@@ -7,9 +7,9 @@ describe('TestCorporateHolderQuery', function(){
77 this . timeout ( 10000 ) ;
88 it ( 'test_success' , async ( ) => {
99 let i = 0 ;
10- const holders = await starkbank . corporateHolder . log . query ( { limit : 5 } ) ;
11- for await ( let holder of holders ) {
12- assert ( typeof holder . id == 'string' ) ;
10+ const holderLogs = await starkbank . corporateHolder . log . query ( { limit : 5 } ) ;
11+ for await ( let log of holderLogs ) {
12+ assert ( typeof log . id == 'string' ) ;
1313 i += 1 ;
1414 }
1515 assert ( i === 5 ) ;
@@ -19,11 +19,11 @@ describe('TestCorporateHolderQuery', function(){
1919describe ( 'TestCorporateHolderGet' , function ( ) {
2020 this . timeout ( 10000 ) ;
2121 it ( 'test_success' , async ( ) => {
22- let purchases = await starkbank . corporatePurchase . log . query ( { limit : 1 } ) ;
23- for await ( let purchase of purchases ) {
24- assert ( typeof purchase . id == typeof 'string' ) ;
25- purchase = await starkbank . corporatePurchase . log . get ( purchase . id ) ;
26- assert ( typeof purchase . id == typeof 'string' ) ;
22+ let purchaseLogs = await starkbank . corporatePurchase . log . query ( { limit : 1 } ) ;
23+ for await ( let log of purchaseLogs ) {
24+ assert ( typeof log . id == typeof 'string' ) ;
25+ log = await starkbank . corporatePurchase . log . get ( log . id ) ;
26+ assert ( typeof log . id == typeof 'string' ) ;
2727 }
2828 } ) ;
2929} ) ;
0 commit comments