mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-17 23:41:27 +00:00
Fix and pass first test
This commit is contained in:
parent
e2c5826e71
commit
92b6f1df15
@ -1,10 +1,10 @@
|
|||||||
var {Shop, Item} = require('../src/gilded_rose.js');
|
var { Shop, Item } = require('../src/gilded_rose.js');
|
||||||
describe("Gilded Rose", function() {
|
describe("Gilded Rose", function () {
|
||||||
|
|
||||||
it("should foo", function() {
|
it("should foo", function () {
|
||||||
const gildedRose = new Shop([ new Item("foo", 0, 0) ]);
|
const gildedRose = new Shop([new Item("foo", 0, 0)]);
|
||||||
const items = gildedRose.updateQuality();
|
const items = gildedRose.updateQuality();
|
||||||
expect(items[0].name).toEqual("fixme");
|
expect(items[0].name).toEqual("foo");
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user