mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
Add test for Sulfuras
This commit is contained in:
parent
a78885163c
commit
54e6f1b3d0
@ -51,5 +51,13 @@ describe('Shop', () => {
|
|||||||
const items = gildedRose.updateQuality();
|
const items = gildedRose.updateQuality();
|
||||||
expect(items[0].quality).toEqual(50);
|
expect(items[0].quality).toEqual(50);
|
||||||
});
|
});
|
||||||
|
it('will not change the sellIn or quality of Sulfuras', () => {
|
||||||
|
item.name = 'Sulfuras, Hand of Ragnaros';
|
||||||
|
item.sellIn = 5;
|
||||||
|
item.quality = 5;
|
||||||
|
const items = gildedRose.updateQuality();
|
||||||
|
expect(items[0].sellIn).toEqual(5);
|
||||||
|
expect(items[0].quality).toEqual(5);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user