mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
16 lines
327 B
JavaScript
16 lines
327 B
JavaScript
var { Shop } = require('../src/gilded_rose.js');
|
|
|
|
describe("Gilded Rose", function () {
|
|
let item = {
|
|
name: 'foo',
|
|
sellIn: 5,
|
|
quality: 5
|
|
}
|
|
it("should foo", function () {
|
|
const gildedRose = new Shop([item]);
|
|
const items = gildedRose.updateQuality();
|
|
expect(items[0].name).toEqual("foo");
|
|
});
|
|
|
|
});
|