You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							35 lines
						
					
					
						
							661 B
						
					
					
				
			
		
		
	
	
							35 lines
						
					
					
						
							661 B
						
					
					
				| import position from '../src'
 | |
| 
 | |
| test('returns position styles', () => {
 | |
|   const style = position({
 | |
|     position: 'absolute',
 | |
|     top: 0,
 | |
|     right: 0,
 | |
|   })
 | |
|   expect(style).toEqual({
 | |
|     position: 'absolute',
 | |
|     top: 0,
 | |
|     right: 0,
 | |
|   })
 | |
| })
 | |
| 
 | |
| test('returns theme values', () => {
 | |
|   const style = position({ top: 1, right: 2, bottom: 3, left: 4 })
 | |
|   expect(style).toEqual({ top: 4, right: 8, bottom: 16, left: 32 })
 | |
| })
 | |
| 
 | |
| test('returns pixel values', () => {
 | |
|   const style = position({
 | |
|     top: '1px',
 | |
|     right: '2px',
 | |
|     bottom: '3px',
 | |
|     left: '4px',
 | |
|   })
 | |
|   expect(style).toEqual({
 | |
|     top: '1px',
 | |
|     right: '2px',
 | |
|     bottom: '3px',
 | |
|     left: '4px',
 | |
|   })
 | |
| })
 |