{"size": 273, "ext": "js", "max_stars_repo_path": "src/handlers/handleShadowInput.js", "max_stars_repo_name": "the-owl/cypress-file-upload", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/handlers/handleShadowInput.js", "max_issues_repo_name": "the-owl/cypress-file-upload", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/handlers/handleShadowInput.js", "max_forks_repo_name": "the-owl/cypress-file-upload", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.3333333333, "max_line_length": 61, "alphanum_fraction": 0.6923076923}
export default ({ subject }, { files }) => {
  const dataTransfer = new DataTransfer();
  files.forEach(file => dataTransfer.items.add(file));
  const input = subject[0];
  input.files = dataTransfer.files;

  return subject[0].dispatchEvent(new CustomEvent('change'));
};
