mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
added new tests to check if quality and sellIn are updating
This commit is contained in:
parent
ef3085920e
commit
cff4e277b2
@ -10,3 +10,25 @@ describe('Gilded Rose', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('Gilded Rose', function () {
|
||||||
|
it('Should give back updated SellIn', function () {
|
||||||
|
const gildedRose = new GildedRose([ new Item('foo', 5, 5)]);
|
||||||
|
const items = gildedRose.updateQuality();
|
||||||
|
|
||||||
|
expect(items[0].sellIn).to.equal(4);
|
||||||
|
expect(items[0].quality).to.equal(4);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('Gilded Rose', function () {
|
||||||
|
it('Should give back updated Quality', function () {
|
||||||
|
const gildedRose = new GildedRose([ new Item('foo', 5, 5)]);
|
||||||
|
const items = gildedRose.updateQuality();
|
||||||
|
expect(items[0].quality).to.equal(4);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user