<commit_before>"use strict";

let errors = require("../src/errors");

describe("Test Errors", () => {

	it("test error types", () => {
		expect(errors.ServiceNotFoundError).toBeDefined();
	});

	it("test ServiceNotFoundError", () => {
		let data = {};
		let err = new errors.ServiceNotFoundError("Something went wrong!", data);
		expect(err).toBeDefined();
		expect(err).toBeInstanceOf(Error);
		expect(err.name).toBe("ServiceNotFoundError");
		expect(err.message).toBe("Something went wrong!");
		expect(err.data).toBe(data);
	});

	it("test ValidationError", () => {
		let data = {};
		let err = new errors.ValidationError("Param is not correct!", data);
		expect(err).toBeDefined();
		expect(err).toBeInstanceOf(Error);
		expect(err.name).toBe("ValidationError");
		expect(err.message).toBe("Param is not correct!");
		expect(err.data).toBe(data);
	});

});<commit_msg>increment coverage<commit_after>"use strict";

let errors = require("../src/errors");

describe("Test Errors", () => {

	it("test error types", () => {
		expect(errors.ServiceNotFoundError).toBeDefined();
	});

	it("test ServiceNotFoundError", () => {
		let data = {};
		let err = new errors.ServiceNotFoundError("Something went wrong!", data);
		expect(err).toBeDefined();
		expect(err).toBeInstanceOf(Error);
		expect(err.name).toBe("ServiceNotFoundError");
		expect(err.message).toBe("Something went wrong!");
		expect(err.data).toBe(data);
	});

	it("test RequestTimeoutError", () => {
		let data = {};
		let err = new errors.RequestTimeoutError("Something went wrong!", data);
		expect(err).toBeDefined();
		expect(err).toBeInstanceOf(Error);
		expect(err.name).toBe("RequestTimeoutError");
		expect(err.message).toBe("Something went wrong!");
		expect(err.data).toBe(data);
	});

	it("test ValidationError", () => {
		let data = {};
		let err = new errors.ValidationError("Param is not correct!", data);
		expect(err).toBeDefined();
		expect(err).toBeInstanceOf(Error);
		expect(err.name).toBe("ValidationError");
		expect(err.message).toBe("Param is not correct!");
		expect(err.data).toBe(data);
	});

});
{'fraction_non_alphanumeric': 0.19616306954436452, 'fraction_numerical': 0.0, 'mean_word_length': 5.379204892966361, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '2839440', 'n_tokens_mistral': 689, 'n_tokens_neox': 640, 'n_words': 117}