<commit_before>import React from 'react'
import { shallow, mount, render } from 'enzyme'
import { assert, expect } from 'chai'
import Directions from '../lib/components/Directions'<commit_msg>adds tests for directions<commit_after>import React from 'react'
import { shallow, mount, render } from 'enzyme'
import { assert, expect } from 'chai'
import Directions from '../lib/components/Directions'
import data from '../lib/data'

describe('Directions', () => {
	it('renders a iframe with google map', () => {
		const wrapper = shallow(<Directions location={data[0]}/>)
		assert(wrapper.find('iframe'))
	});
	it('renders with h4 header', () => {
		const wrapper = shallow(<Directions location={data[0]}/>)
		assert(wrapper.find('h4'))
	})
});
{'fraction_non_alphanumeric': 0.1662162162162162, 'fraction_numerical': 0.005405405405405406, 'mean_word_length': 5.279661016949152, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4297975', 'n_tokens_mistral': 237, 'n_tokens_neox': 220, 'n_words': 65}