Commit Graph

49 Commits

Author SHA1 Message Date
Jesper
5080a0ba94 Formatting 2022-04-13 17:41:39 +02:00
Jesper
3f2fb9d506 Ensure immutability outside of class with Readonly 2022-04-13 17:41:07 +02:00
Jesper
4dffac3dcf Clarify conditional 2022-04-13 17:35:46 +02:00
Jesper
1fdb4e6f50 Use guard 2022-04-13 17:35:00 +02:00
Jesper
258877c3e9 Clean 2022-04-13 17:32:46 +02:00
Jesper
da0a6379dd Ifs -> switch 2022-04-13 17:32:14 +02:00
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
Salva Pérez
cc3b5708e1 Readme updated 2022-02-10 10:13:36 +01:00
Salva Pérez
fdd6f6b4cb Fixed run app. Parametrized days simulation. 2022-02-10 10:13:30 +01:00
Anthony Rey
b0f4a15245 Add Jest to TypeScript (and update dependencies) 2021-11-09 18:41:26 +01:00
Samuel Ytterbrink
70a9e74f68 Update typescript dependencies and the mocharc file 2021-01-28 12:21:03 +01:00
archive-sebastian
84f92fe5d7 excluded none spec files from test runner 2018-12-10 13:01:57 +01:00
archive-sebastian
c9f4838a09 fixed file name typo 2018-12-10 13:01:56 +01:00
archive-sebastian
8a4aa4b684 add golden master for typescript 2018-12-10 13:01:56 +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
Peter Kofler
b881804cda Use newer version of TypeScript. Use proper project name in project properties. 2018-12-02 22:06:14 +01:00
Harry Dennen
34c9b0bbca fix(js and ts): typo
- 'gilged' to 'gilded' in respective specs
2017-07-06 10:16:37 +02:00
Paulo Clavijo Esteban
10346b66c8 Added GildedRose for TypeScript 2017-06-30 17:32:04 +01:00