mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-10-31 16:07:45 +03:00 
			
		
		
		
	* feature(react-dock): convert to TypeScript * And that * Fun * pretty * More fun * Try that
		
			
				
	
	
		
			24 lines
		
	
	
		
			588 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			588 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import React from 'react';
 | |
| import { createRenderer } from 'react-test-renderer/shallow';
 | |
| import Dock from '../src/Dock';
 | |
| 
 | |
| describe('Dock component', function () {
 | |
|   it('should have shallow rendering', function () {
 | |
|     const renderer = createRenderer();
 | |
|     const DockEl = <Dock />;
 | |
|     renderer.render(DockEl);
 | |
| 
 | |
|     const result = renderer.getRenderOutput();
 | |
| 
 | |
|     expect(DockEl.props).toEqual({
 | |
|       position: 'left',
 | |
|       zIndex: 99999999,
 | |
|       fluid: true,
 | |
|       defaultSize: 0.3,
 | |
|       dimMode: 'opaque',
 | |
|       duration: 200,
 | |
|     });
 | |
|     expect(result.type).toBe('div');
 | |
|   });
 | |
| });
 |