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.
		
		
		
		
		
			
		
			
				
					18 lines
				
				399 B
			
		
		
			
		
	
	
					18 lines
				
				399 B
			| 
								 
											3 years ago
										 
									 | 
							
								import shadow from '../src'
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								test('returns shadow styles', () => {
							 | 
						||
| 
								 | 
							
								  const style = shadow({
							 | 
						||
| 
								 | 
							
								    theme: {
							 | 
						||
| 
								 | 
							
								      shadows: {
							 | 
						||
| 
								 | 
							
								        small: '0 1px 4px rgba(0, 0, 0, .125)',
							 | 
						||
| 
								 | 
							
								      },
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								    textShadow: '0 -1px rgba(255, 255, 255, .25)',
							 | 
						||
| 
								 | 
							
								    boxShadow: 'small',
							 | 
						||
| 
								 | 
							
								  })
							 | 
						||
| 
								 | 
							
								  expect(style).toEqual({
							 | 
						||
| 
								 | 
							
								    textShadow: '0 -1px rgba(255, 255, 255, .25)',
							 | 
						||
| 
								 | 
							
								    boxShadow: '0 1px 4px rgba(0, 0, 0, .125)',
							 | 
						||
| 
								 | 
							
								  })
							 | 
						||
| 
								 | 
							
								})
							 |