import React from 'react'
import { mount, shallow } from 'enzyme'
import { Rating } from './Rating'
describe('Rating', () => {
it('Should have a rating and label', () => {
const ratings = shallow(rating)
const rating = ratings.find('span')
expect(rating.text()).toBe('1 rating')
})
it('Should have a rating, label and stars', () => {
const profile = mount(
rating
,
)
const ratings = profile.find('span')
expect(ratings.text()).toBe('1 rating')
const stars = profile.find('svg')
expect(stars).toHaveLength(5)
})
})