From 5af2bcd4ac25b35895c3ef3371840f986209112b Mon Sep 17 00:00:00 2001 From: Peter Kofler Date: Fri, 2 May 2014 14:52:25 +0200 Subject: [PATCH] add very basic texttest firxture for JavaScript --- js/TexttestFixture.html | 54 +++++++++++++++++++++++++++++++++++++++++ js/src/gilded_rose.js | 7 ------ 2 files changed, 54 insertions(+), 7 deletions(-) create mode 100644 js/TexttestFixture.html diff --git a/js/TexttestFixture.html b/js/TexttestFixture.html new file mode 100644 index 00000000..cf453495 --- /dev/null +++ b/js/TexttestFixture.html @@ -0,0 +1,54 @@ + + + + +Gilded Rose Texttest Fixture + + + + + + + + + + + diff --git a/js/src/gilded_rose.js b/js/src/gilded_rose.js index c6517b3c..4d28da89 100644 --- a/js/src/gilded_rose.js +++ b/js/src/gilded_rose.js @@ -6,13 +6,6 @@ function Item(name, sell_in, quality) { var items = [] -items.push(new Item('+5 Dexterity Vest', 10, 20)); -items.push(new Item('Aged Brie', 2, 0)); -items.push(new Item('Elixir of the Mongoose', 5, 7)); -items.push(new Item('Sulfuras, Hand of Ragnaros', 0, 80)); -items.push(new Item('Backstage passes to a TAFKAL80ETC concert', 15, 20)); -items.push(new Item('Conjured Mana Cake', 3, 6)); - function update_quality() { for (var i = 0; i < items.length; i++) { if (items[i].name != 'Aged Brie' && items[i].name != 'Backstage passes to a TAFKAL80ETC concert') {