{"size": 728, "ext": "js", "max_stars_repo_path": "lesson4/quizSlider/grader/unit_tests.js", "max_stars_repo_name": "udacity/course-web-forms", "max_stars_repo_stars_event_min_datetime": "2015-12-29T08:09:43.000Z", "max_stars_repo_stars_event_max_datetime": "2020-08-15T08:03:38.000Z", "max_issues_repo_path": "lesson4/quizSlider/grader/unit_tests.js", "max_issues_repo_name": "udacity/course-web-forms", "max_issues_repo_issues_event_min_datetime": "2016-05-16T17:44:56.000Z", "max_issues_repo_issues_event_max_datetime": "2016-05-25T03:23:05.000Z", "max_forks_repo_path": "lesson4/quizSlider/grader/unit_tests.js", "max_forks_repo_name": "udacity/course-web-forms", "max_forks_repo_forks_event_min_datetime": "2015-09-29T20:57:09.000Z", "max_forks_repo_forks_event_max_datetime": "2020-08-15T08:03:51.000Z"}
{"max_stars_count": 8, "max_issues_count": 4, "max_forks_count": 15, "avg_line_length": 28.0, "max_line_length": 95, "alphanum_fraction": 0.6799450549}
var grader = new Grader();

// var toggle = document.querySelector('#toggle');

grader.addTest(function() {
	toggle.dispatchEvent(new TouchEvent('start', {'bubbles': true, 'touches': [{'pageX': 300}]}));
	console.log('hi');
	return true;
	// return grader.hasCorrectLength('#toggle > .markings', 1);
}, {
  wrongMessage: "The toggle is on the page."
}, false);

grader.runTests(
	// {ignoreCheckpoints: true}
);

grader.onresult = function (result) {
	console.log(result);
};
// result = {
//   is_correct: grader.isCorrect,
//   test_feedback: grader.getFormattedWrongMessages('\n'),
//   test_comments: grader.getFormattedComments('\n'),
//   congrats: "Sweet slider! Looks like you're getting the hang of touch events."
// };