{"size": 290, "ext": "js", "max_stars_repo_path": "js-jest/test/spec_helper.js", "max_stars_repo_name": "hacaravan/GildedRose-Refactoring-Kata", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js-jest/test/spec_helper.js", "max_issues_repo_name": "hacaravan/GildedRose-Refactoring-Kata", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js-jest/test/spec_helper.js", "max_forks_repo_name": "hacaravan/GildedRose-Refactoring-Kata", "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": 20.7142857143, "max_line_length": 56, "alphanum_fraction": 0.6931034483}
"use strict"

const {Shop, Item} = require("../src/gilded_rose");

const createAndUpdateItem = (name, sellIn, quality) => {
  let item = new Item(name, sellIn, quality)
  let gildedRose = new Shop([item])
  return gildedRose.updateQuality()[0]
}

module.exports = {
  createAndUpdateItem
}
