{"size": 513, "ext": "js", "max_stars_repo_path": "2018/day2.test.js", "max_stars_repo_name": "Haidy777/adventofcode", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "2018/day2.test.js", "max_issues_repo_name": "Haidy777/adventofcode", "max_issues_repo_issues_event_min_datetime": "2019-02-06T04:39:53.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-09T04:01:59.000Z", "max_forks_repo_path": "2018/day2.test.js", "max_forks_repo_name": "Haidy777/adventofcode", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 63, "max_forks_count": null, "avg_line_length": 30.1764705882, "max_line_length": 98, "alphanum_fraction": 0.5399610136}
const {part1, part2} = require('./day2');

describe('Day 2 - Part 1', () => {
	describe('Example 1', () => {
		it('should return a rudimentary checksum', () => {
			expect(part1(['abcdef', 'bababc', 'abbcde', 'abcccd', 'aabcdd', 'abcdee', 'ababab'])).toBe(12);
		});
	});
});

describe('Day 2 - Part 2', () => {
	describe('Example 1', () => {
		it('should return the common letters of the ids', () => {
			expect(part2(['abcde', 'fghij', 'klmno', 'pqrst', 'fguij', 'axcye', 'wvxyz'])).toBe('fgij');
		});
	});
});