<commit_before>'use strict'

const assert = require('assert')
const routes = require('./index').routes

routes('FRLPD', 'DEFRA')
.then((data) => assert.strictEqual(typeof data, 'object', 'Response is not an object'))
.catch(assert.ifError)<commit_msg>tests for places :white_check_mark:<commit_after>'use strict'

const assert = require('assert')
const {routes, places} = require('.')

routes('FRLPD', 'DEFRA')
.then((data) => assert.strictEqual(typeof data, 'object', 'Response is not an object'))
.catch(assert.ifError)

places('Lyon')
.then((results) => {
	assert.ok(Array.isArray(results), 'Response is not an array.')
	for (let result of results) {
		assert.strictEqual(typeof result.name, 'string', 'Name in result is not a string.')
		assert.strictEqual(typeof result.id, 'string', 'ID in result is not a string.')
	}
})
.catch(assert.ifError)
{'fraction_non_alphanumeric': 0.17176470588235293, 'fraction_numerical': 0.0, 'mean_word_length': 5.862903225806452, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '1124624', 'n_tokens_mistral': 275, 'n_tokens_neox': 275, 'n_words': 77}