{"size": 942, "ext": "js", "max_stars_repo_path": "test/unit/errors.js", "max_stars_repo_name": "jwoos/javascript_frotz", "max_stars_repo_stars_event_min_datetime": "2016-11-05T19:06:33.000Z", "max_stars_repo_stars_event_max_datetime": "2019-05-21T23:56:05.000Z", "max_issues_repo_path": "test/unit/errors.js", "max_issues_repo_name": "jwoos/frotz-js", "max_issues_repo_issues_event_min_datetime": "2016-08-02T03:49:34.000Z", "max_issues_repo_issues_event_max_datetime": "2018-07-09T00:12:18.000Z", "max_forks_repo_path": "test/unit/errors.js", "max_forks_repo_name": "jwoos/frotz-js", "max_forks_repo_forks_event_min_datetime": "2016-11-08T03:33:45.000Z", "max_forks_repo_forks_event_max_datetime": "2016-11-08T03:33:45.000Z"}
{"max_stars_count": 3, "max_issues_count": 35, "max_forks_count": 1, "avg_line_length": 29.4375, "max_line_length": 74, "alphanum_fraction": 0.6645435244}
'use strict';

const path = require('path');

const errors = require(path.join(__dirname, '../../dist/errors.js'));

describe('Class: FileError', () => {
	describe('Method: constructor', () => {
		it('should extend error', () => {
			let error = new errors.FileError('Test message');

			expect(error instanceof Error).toEqual(true);
			expect(error.name).toEqual('FileError');
			expect(error.message).toEqual('Test message');
			expect(error.toString()).toEqual('FileError: Test message');
		});
	});
});

describe('Class: DFrotzInterfaceError', () => {
	describe('Method: constructor', () => {
		it('should extend error', () => {
			let error = new errors.DFrotzInterfaceError('Test message');

			expect(error instanceof Error).toEqual(true);
			expect(error.name).toEqual('DFrotzInterfaceError');
			expect(error.message).toEqual('Test message');
			expect(error.toString()).toEqual('DFrotzInterfaceError: Test message');
		});
	});
});
