From 5080a0ba94c7bd1ac5fab15b6823b528b25e03b2 Mon Sep 17 00:00:00 2001 From: Jesper Date: Wed, 13 Apr 2022 17:41:39 +0200 Subject: [PATCH] Formatting --- TypeScript/test/jest/gilded-rose.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TypeScript/test/jest/gilded-rose.spec.ts b/TypeScript/test/jest/gilded-rose.spec.ts index 0391b119..1613bb3b 100644 --- a/TypeScript/test/jest/gilded-rose.spec.ts +++ b/TypeScript/test/jest/gilded-rose.spec.ts @@ -4,10 +4,10 @@ import { Item, GildedRose } from '@/gilded-rose' * A copy of the unrefactored GildedRose class which will be used for acceptance tests */ export class AcceptanceGildedRose { - items: Array; + items: Array constructor(items = [] as Array) { - this.items = items; + this.items = items } updateQuality() { @@ -36,7 +36,7 @@ export class AcceptanceGildedRose { } } 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].name != 'Aged Brie') { @@ -57,7 +57,7 @@ export class AcceptanceGildedRose { } } - return this.items; + return this.items } }