{"size": 904, "ext": "js", "max_stars_repo_path": "__tests__/components/preference/PreferenceItem-test.js", "max_stars_repo_name": "bookit-app/capstoneSweng894", "max_stars_repo_stars_event_min_datetime": "2019-10-08T04:00:18.000Z", "max_stars_repo_stars_event_max_datetime": "2019-10-08T04:00:18.000Z", "max_issues_repo_path": "__tests__/components/preference/PreferenceItem-test.js", "max_issues_repo_name": "bookit-app/capstoneSweng894", "max_issues_repo_issues_event_min_datetime": "2019-10-27T21:20:30.000Z", "max_issues_repo_issues_event_max_datetime": "2019-11-23T19:35:32.000Z", "max_forks_repo_path": "__tests__/components/preference/PreferenceItem-test.js", "max_forks_repo_name": "bookit-app/capstoneSweng894", "max_forks_repo_forks_event_min_datetime": "2020-05-12T03:20:40.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-12T03:20:40.000Z"}
{"max_stars_count": 1, "max_issues_count": 6, "max_forks_count": 1, "avg_line_length": 30.1333333333, "max_line_length": 91, "alphanum_fraction": 0.5597345133}
import '../../../src/setupTests'
import React from 'react'
import { shallow } from 'enzyme';
import {create} from 'react-test-renderer'
import {PreferenceItem} from '../../../src/components/preference'

describe('Preference Item render correctly', () => {
    test('Preference Item render without crashing with businessName not populated', () => {
        var preferenceItem = shallow(
            <PreferenceItem 
                onProviderSelect={() => {}}
                businessName={''}
            />
        )
        
        expect(preferenceItem).toBeTruthy()
    })

    test('Preference Item render without crashing with businessName populated', () => {
        var preferenceItem = shallow(
            <PreferenceItem 
                onProviderSelect={() => {}}
                businessName={'Test'}
            />
        )
        
        expect(preferenceItem).toBeTruthy()
    })
})
