mirror of
				https://github.com/Xahau/xahau.js.git
				synced 2025-11-04 04:55:48 +00:00 
			
		
		
		
	fix standalone errors
This commit is contained in:
		@@ -31,7 +31,7 @@ describe('server_state', function () {
 | 
			
		||||
        id: 0,
 | 
			
		||||
        result: {
 | 
			
		||||
          state: {
 | 
			
		||||
            build_version: '1.7.3',
 | 
			
		||||
            build_version: '1.10.0-rc1',
 | 
			
		||||
            complete_ledgers: '2563-2932',
 | 
			
		||||
            io_latency_ms: 1,
 | 
			
		||||
            jq_trans_overflow: '0',
 | 
			
		||||
@@ -103,6 +103,8 @@ describe('server_state', function () {
 | 
			
		||||
      )
 | 
			
		||||
 | 
			
		||||
      const removeKeys = [
 | 
			
		||||
        'initial_sync_duration_us',
 | 
			
		||||
        'node_size',
 | 
			
		||||
        'complete_ledgers',
 | 
			
		||||
        'load',
 | 
			
		||||
        'state_accounting',
 | 
			
		||||
@@ -133,7 +135,7 @@ describe('server_state', function () {
 | 
			
		||||
        )
 | 
			
		||||
        assert.equal(
 | 
			
		||||
          typeof response.result.state.state_accounting[key].transitions,
 | 
			
		||||
          'number',
 | 
			
		||||
          'string',
 | 
			
		||||
        )
 | 
			
		||||
      })
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -158,7 +158,7 @@ describe('subscribe', function () {
 | 
			
		||||
        // Explicitly checking that there are only known fields in the return
 | 
			
		||||
        const expectedResult = {
 | 
			
		||||
          fee_base: ledgerResponse.fee_base,
 | 
			
		||||
          fee_ref: ledgerResponse.fee_ref,
 | 
			
		||||
          fee_ref: 0,
 | 
			
		||||
          ledger_hash: ledgerResponse.ledger_hash,
 | 
			
		||||
          ledger_index: ledgerResponse.ledger_index,
 | 
			
		||||
          ledger_time: ledgerResponse.ledger_time,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user