1import { mount } from 'enzyme'; 2import React from 'react'; 3 4import { LinearGradient } from '../LinearGradient'; 5 6it(`renders a complex gradient`, () => { 7 const component = mount( 8 <LinearGradient 9 colors={['red', 'blue']} 10 start={{ x: 0, y: 0 }} 11 end={{ x: 1, y: 1 }} 12 locations={[0.5, 1]} 13 /> 14 ); 15 16 expect( 17 component.find('ViewManagerAdapter_ExpoLinearGradient').first().prop('proxiedProperties') 18 ).toMatchSnapshot(); 19}); 20