From 54e6f1b3d06fffaa687050ae87fdb8bac1a72f7d Mon Sep 17 00:00:00 2001 From: Dan Holmes Date: Thu, 3 Dec 2020 13:56:31 +0000 Subject: [PATCH] Add test for Sulfuras --- js-jasmine/spec/shop_spec.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js-jasmine/spec/shop_spec.js b/js-jasmine/spec/shop_spec.js index ae5ef64c..f1936d31 100644 --- a/js-jasmine/spec/shop_spec.js +++ b/js-jasmine/spec/shop_spec.js @@ -51,5 +51,13 @@ describe('Shop', () => { const items = gildedRose.updateQuality(); 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); + }); }); });