mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-15 10:33:53 +00:00
add very basic texttest firxture for JavaScript
This commit is contained in:
1 parent
4967a5606d
commit
5af2bcd4ac
2 files changed
+54
-7
No files matched your search
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user