mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-17 23:41:27 +00:00
Formatting
This commit is contained in:
parent
3f2fb9d506
commit
5080a0ba94
@ -4,10 +4,10 @@ import { Item, GildedRose } from '@/gilded-rose'
|
|||||||
* A copy of the unrefactored GildedRose class which will be used for acceptance tests
|
* A copy of the unrefactored GildedRose class which will be used for acceptance tests
|
||||||
*/
|
*/
|
||||||
export class AcceptanceGildedRose {
|
export class AcceptanceGildedRose {
|
||||||
items: Array<Item>;
|
items: Array<Item>
|
||||||
|
|
||||||
constructor(items = [] as Array<Item>) {
|
constructor(items = [] as Array<Item>) {
|
||||||
this.items = items;
|
this.items = items
|
||||||
}
|
}
|
||||||
|
|
||||||
updateQuality() {
|
updateQuality() {
|
||||||
@ -36,7 +36,7 @@ export class AcceptanceGildedRose {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.items[i].name != 'Sulfuras, Hand of Ragnaros') {
|
if (this.items[i].name != 'Sulfuras, Hand of Ragnaros') {
|
||||||
this.items[i].sellIn = this.items[i].sellIn - 1;
|
this.items[i].sellIn = this.items[i].sellIn - 1
|
||||||
}
|
}
|
||||||
if (this.items[i].sellIn < 0) {
|
if (this.items[i].sellIn < 0) {
|
||||||
if (this.items[i].name != 'Aged Brie') {
|
if (this.items[i].name != 'Aged Brie') {
|
||||||
@ -57,7 +57,7 @@ export class AcceptanceGildedRose {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.items;
|
return this.items
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user