This commit is contained in:
Albert Juhé Lluveras 2019-08-12 13:41:18 +02:00 committed by GitHub
parent de97e18df7
commit a36608d9dc
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/**
* External dependencies
*/
import renderer from 'react-test-renderer';
import TestRenderer from 'react-test-renderer';
/**
* Internal dependencies
@ -21,7 +21,7 @@ describe( 'ProductPreview', () => {
},
],
};
const component = renderer.create( <ProductPreview product={ product } /> );
const component = TestRenderer.create( <ProductPreview product={ product } /> );
expect( component.toJSON() ).toMatchSnapshot();
} );
@ -33,7 +33,7 @@ describe( 'ProductPreview', () => {
'<span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">&#36;</span>65.00</span>',
images: [],
};
const component = renderer.create( <ProductPreview product={ product } /> );
const component = TestRenderer.create( <ProductPreview product={ product } /> );
expect( component.toJSON() ).toMatchSnapshot();
} );
} );