Commit Graph

24 Commits

Author SHA1 Message Date
Gayun00
12e7f8e82e Refactor: use union type in ItemName type to implement Item interface 2023-10-18 23:24:16 +09:00
Gayun00
833f59f2ba Refactor: add test cases 2023-09-26 08:09:16 +09:00
Gayun00
b7857cb77b Refactor: check test, delete previous functions 2023-09-26 00:07:59 +09:00
Gayun00
77c82c95b3 Refactor: add handleQuality, handleSellIn of item classes 2023-09-25 23:29:27 +09:00
Gayun00
5d670ac672 Refactor: add item classes 2023-09-25 22:34:24 +09:00
Gayun00
60aafd40e1 Refactor: seperate to handleSellIn, handleQuality 2023-09-25 21:53:58 +09:00
Gayun00
022eded430 Refactor: remove unnecessary conditional depth 2023-09-25 18:37:10 +09:00
Gayun00
87131ef926 Refactor: remove duplicated conditional statement
- seperate handlePassesQuality
2023-09-25 17:44:53 +09:00
Gayun00
2bacc188d5 Refactor: sepereate handleQualitySellInIs0
- use switch case
2023-09-25 17:25:39 +09:00
Gayun00
16d0d0c5a0 Refactor: replace this.items[i] to item 2023-09-23 23:12:52 +09:00
Gayun00
99177b74a0 Refactor: use items constants 2023-09-23 23:11:10 +09:00
Gayun00
a56e6acd5a Add: unit test 2023-09-23 00:16:40 +09:00
Anthony Rey
95a5db2080 Add vitest inside TypeScript 2023-02-22 11:33:47 +01: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