Support for message retry requests
This commit is contained in:
		
					parent
					
						
							
								28f016ce48
							
						
					
				
			
			
				commit
				
					
						ee513a1965
					
				
			
		
					 37 changed files with 1996 additions and 359 deletions
				
			
		| 
						 | 
				
			
			@ -3,12 +3,19 @@
 | 
			
		|||
 | 
			
		||||
/* eslint-disable no-console */
 | 
			
		||||
 | 
			
		||||
const chai = require('chai');
 | 
			
		||||
const chaiAsPromised = require('chai-as-promised');
 | 
			
		||||
 | 
			
		||||
const ByteBuffer = require('../components/bytebuffer/dist/ByteBufferAB.js');
 | 
			
		||||
const Long = require('../components/long/dist/Long.js');
 | 
			
		||||
const { setEnvironment, Environment } = require('../ts/environment');
 | 
			
		||||
 | 
			
		||||
chai.use(chaiAsPromised);
 | 
			
		||||
 | 
			
		||||
setEnvironment(Environment.Test);
 | 
			
		||||
 | 
			
		||||
const storageMap = new Map();
 | 
			
		||||
 | 
			
		||||
// To replicate logic we have on the client side
 | 
			
		||||
global.window = {
 | 
			
		||||
  log: {
 | 
			
		||||
| 
						 | 
				
			
			@ -21,6 +28,10 @@ global.window = {
 | 
			
		|||
    ByteBuffer,
 | 
			
		||||
    Long,
 | 
			
		||||
  },
 | 
			
		||||
  storage: {
 | 
			
		||||
    get: key => storageMap.get(key),
 | 
			
		||||
    put: async (key, value) => storageMap.set(key, value),
 | 
			
		||||
  },
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// For ducks/network.getEmptyState()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue