added updateConjuredItem method and kept room for implementing the relevant business logic

This commit is contained in:
Chamoda Ranasinghe 2024-01-16 03:57:03 +07:00
parent 6109899ada
commit d28c76856c
No known key found for this signature in database
GPG Key ID: DE81C3C335B7CED3

View File

@ -74,6 +74,11 @@ export class GildedRose {
}
}
private updateConjuredItem(item: Item) {
assert(item.name == ItemNames.CONJURED_CAKE);
//business logic to be implemented
}
updateQuality() {
for (const item of this.items) {
switch (item.name) {