Commit Graph

35 Commits

Author SHA1 Message Date
Jesper
ad10e04856 New names 2022-04-13 17:28:42 +02:00
Jesper
564c39defb More consistent syntax 2022-04-13 17:24:14 +02:00
Jesper
b45e9b7cf2 extract updateItems 2022-04-13 17:23:30 +02:00
Jesper
796f5e7764 Simplify map chain 2022-04-13 17:22:06 +02:00
Jesper
36552ffe54 Chain maps 2022-04-13 17:21:45 +02:00
Jesper
68df2fec5a forEach -> map 2022-04-13 17:21:29 +02:00
Jesper
93cfbd0109 Split loops 2022-04-13 17:19:58 +02:00
Jesper
20ccdb2aa5 Consistent naming 2022-04-13 17:19:16 +02:00
Jesper
8cbae0fd1b Lift side effects 2022-04-13 17:18:49 +02:00
Jesper
88982514b1 Use guard 2022-04-13 17:17:54 +02:00
Jesper
03379118c6 Extract updateSellIn 2022-04-13 17:17:34 +02:00
Jesper
ea88b3db9c Use guard 2022-04-13 17:16:17 +02:00
Jesper
0dc2301898 Extract decrementQuality 2022-04-13 17:15:25 +02:00
Jesper
626b3cb04f Destructure and simplify syntax 2022-04-13 17:14:31 +02:00
Jesper
ed7bfb312a Finish liftin side effects 2022-04-13 17:10:08 +02:00
Jesper
651c14a38b Continue lifting side effects 2022-04-13 17:06:06 +02:00
Jesper
6e34829ee8 Continue lifting side effects 2022-04-13 17:03:57 +02:00
Jesper
ca3ea3dcc4 Start lifting side effects 2022-04-13 17:02:27 +02:00
Jesper
426d9ecd03 Extract update item quality 2022-04-13 16:59:43 +02:00
Jesper
a06e221197 Flatten conditionals 2022-04-13 16:57:38 +02:00
Jesper
b0c4797e66 inline method 2022-04-13 16:55:31 +02:00
Jesper
2fd34247dd Extract brieOrBackstageQuality 2022-04-13 16:41:43 +02:00
Jesper
7c81b6d242 Invert agedbrie and backstage conditional 2022-04-13 16:39:01 +02:00
Jesper
481a303bae Move sellInBelow0 out of class 2022-04-13 16:37:02 +02:00
Jesper
e667c5d091 Destructure item 2022-04-13 16:36:36 +02:00
Jesper
e21ec0cc5b Use guard in sellInBelow0 2022-04-13 16:35:45 +02:00
Jesper
138ad0daab Move conditional into sellInBelow0 2022-04-13 16:35:03 +02:00
Jesper
2bf8dbde29 Lift side-effects 2022-04-13 16:33:49 +02:00
Jesper
87617c7f25 Simply expressions 2022-04-13 16:32:21 +02:00
Jesper
2cd5a72201 Flatten conditionals in sellInBelow0 2022-04-13 16:31:16 +02:00
Jesper
e734b35f3a Extract sellInBelow0 2022-04-13 16:27:20 +02:00
Jesper
ab6be24de4 Replace loop with .forEach 2022-04-13 16:25:18 +02:00
Anthony Rey
b0f4a15245 Add Jest to TypeScript (and update dependencies) 2021-11-09 18:41:26 +01:00
Tomas Novella
939afa9822
Fix compile error in TS
Without a type annotation, TS expects the argument in the ctor to be a never[], hence "npm test" fails to even start
2018-12-09 09:40:49 +01:00
Paulo Clavijo Esteban
10346b66c8 Added GildedRose for TypeScript 2017-06-30 17:32:04 +01:00