<commit_before>/* eslint-env mocha */

"use strict";

const request = require("supertest");
const assert = require("proclaim");
const host = require("../helpers").host;
const vm = require("vm");

describe("https://github.com/Financial-Times/polyfill-service/issues/1865", function() {
	const pathsWebsitesHaveUsedWhichWereNotDocumented = ["/v2/polyfill.debug.js", "/v2/polyfill.min.js.js", "/v2/polyfill.js.js", "/v2/polyfill.minify.js", "/v2/polyfill.production.min.js"];
	for (const path of pathsWebsitesHaveUsedWhichWereNotDocumented) {
		context(host + path, function() {
			it("responds with a bundle containing the correct polyfills", function() {
				this.timeout(30000);
				return request(host)
					.get(path)
					.then(response => {
						assert.isString(response.text);
						assert.doesNotThrow(() => new vm.Script(response.text));
					});
			});
		});
	}
});<commit_msg>Revert "make the test description nicer"<commit_after>/* eslint-env mocha */

"use strict";

const request = require("supertest");
const assert = require("proclaim");
const host = require("../helpers").host;
const vm = require("vm");

describe("https://github.com/Financial-Times/polyfill-service/issues/1865", function() {
	const pathsWebsitesHaveUsedWhichWereNotDocumented = ["/v2/polyfill.debug.js", "/v2/polyfill.min.js.js", "/v2/polyfill.js.js", "/v2/polyfill.minify.js", "/v2/polyfill.production.min.js"];
	for (const path of pathsWebsitesHaveUsedWhichWereNotDocumented) {
		it("responds with a bundle containing the correct polyfills", function() {
			this.timeout(30000);
			return request(host)
				.get(path)
				.then(response => {
					assert.isString(response.text);
					assert.doesNotThrow(() => new vm.Script(response.text));
				});
		});
	}
});
{'fraction_non_alphanumeric': 0.17448512585812356, 'fraction_numerical': 0.016018306636155607, 'mean_word_length': 4.4485981308411215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '3738139', 'n_tokens_mistral': 646, 'n_tokens_neox': 569, 'n_words': 106}