mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
added updateConjuredItem method and kept room for implementing the relevant business logic
This commit is contained in:
parent
6109899ada
commit
d28c76856c
@ -74,6 +74,11 @@ export class GildedRose {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private updateConjuredItem(item: Item) {
|
||||||
|
assert(item.name == ItemNames.CONJURED_CAKE);
|
||||||
|
//business logic to be implemented
|
||||||
|
}
|
||||||
|
|
||||||
updateQuality() {
|
updateQuality() {
|
||||||
for (const item of this.items) {
|
for (const item of this.items) {
|
||||||
switch (item.name) {
|
switch (item.name) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user