mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-10-31 16:07:45 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			402 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			402 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| export const name = 'Mocha template';
 | |
| 
 | |
| export const dispatcher = '${action};';
 | |
| 
 | |
| export const assertion = 'expect(store${path}).toEqual(${curState});';
 | |
| 
 | |
| export const wrap = `import expect from 'expect';
 | |
| import \${name} from '../../stores/\${name}';
 | |
| 
 | |
| test('\${name}', (t) => {
 | |
|   const store = new \${name}(\${initialState});
 | |
|   \${assertions}
 | |
| });
 | |
| `;
 | |
| 
 | |
| export default { name, assertion, dispatcher, wrap };
 |