Add Gilded Rose kata for JavaScript with Jest

This commit is contained in:
Jesstern Rays committed 2019-10-15 15:52:21 +08:00
1 parent fc0f14803a
commit 527e20ebc5
6 files changed
+5015

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
const {Shop, Item} = require("../src/gilded_rose");
describe("Gilded Rose", function() {
it("should foo", function() {
const gildedRose = new Shop([new Item("foo", 0, 0)]);
const items = gildedRose.updateQuality();
expect(items[0].name).toBe("fixme");
});
});