/** @format */
/**
* External dependencies
*/
import { shallow } from 'enzyme';
/**
* Internal dependencies
*/
import { ReviewRating, ProductRating, Rating } from '../';
describe( 'Rating', () => {
test( 'should render the passed rating prop', () => {
const rating = shallow( );
expect( rating ).toMatchSnapshot();
} );
test( 'should render the correct amount of total stars', () => {
const rating = shallow( );
expect( rating ).toMatchSnapshot();
} );
test( 'should render stars at a different size', () => {
const rating = shallow( );
expect( rating ).toMatchSnapshot();
} );
} );
describe( 'ReviewRating', () => {
test( 'should render rating based on review object', () => {
const rating = shallow(
);
expect( rating ).toMatchSnapshot();
} );
} );
describe( 'ProductRating', () => {
test( 'should render rating based on product object', () => {
const rating = shallow(
);
expect( rating ).toMatchSnapshot();
} );
} );