Formatting

This commit is contained in:
Jesper 2022-04-13 17:41:39 +02:00
parent 3f2fb9d506
commit 5080a0ba94

View File

@ -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
} }
} }