Commit Graph

651 Commits

Author SHA1 Message Date
dcdf370423 Merge pull request #10 from brendan-ch/chore/test-timed-api-based-repository-loader
chore/test-timed-api-based-repository-loader
2025-01-22 16:25:05 -08:00
122dfd2f1b add additional test case for already running timer 2025-01-22 16:22:46 -08:00
7007073602 add test implementations for timed api based repository loader 2025-01-22 16:20:32 -08:00
200c5328b6 make timeout constant a class property 2025-01-22 16:20:20 -08:00
f73abb5adc move fetch mock helpers to separate file 2025-01-22 16:02:19 -08:00
8f510e5479 Merge pull request #9 from brendan-ch/chore/test-api-based-repository-loader
chore/test-api-based-repository-loader
2025-01-22 15:55:57 -08:00
193ef324dd Merge branch 'main' into chore/test-api-based-repository-loader 2025-01-22 15:54:40 -08:00
c902472457 add try/catch to remaining methods 2025-01-22 15:52:29 -08:00
d1f8d940b3 remove console.error calls to leave responsibility to caller 2025-01-22 15:51:00 -08:00
8e944892cc add test case for successful eta data response 2025-01-22 15:49:47 -08:00
05c03aa61f rename the snapshot file 2025-01-22 15:47:37 -08:00
7955f27e77 rename eta data response for consistency 2025-01-22 15:46:27 -08:00
40231adfec add test case for successful shuttle data fetch 2025-01-22 15:45:23 -08:00
eb5d872a1e delete temp tests 2025-01-22 15:43:34 -08:00
871f3b9179 rename shuttle data fetch snapshot 2025-01-22 15:43:21 -08:00
1027927bd6 add test implementations for methods involving loops 2025-01-22 15:41:28 -08:00
ad6a9191f3 add remaining test cases 2025-01-22 15:38:27 -08:00
bc3526df88 refactor remaining methods into separate methods for improved testing 2025-01-22 15:16:28 -08:00
95f2181b1c add test for fetchAndUpdateStopAndPolylineDataForRoutesInExistingSystemsInRepository 2025-01-22 15:03:29 -08:00
81d0bb9e01 move json syntax error setting to top-level method 2025-01-22 14:59:15 -08:00
df0e1d3d0f add error throwing to method 2025-01-22 14:59:04 -08:00
acc8d562c3 add json snapshot and test cases for method 2025-01-22 14:56:02 -08:00
b2be3ae583 refactor fetchAndUpdateStopAndPolylineDataForRoutesWithSystemId into separate method 2025-01-22 14:55:51 -08:00
4d5e563f9c add stops and polyline data object 2025-01-22 14:49:05 -08:00
1fea82179a add test case for fetch existing systems method 2025-01-22 14:43:45 -08:00
9fda898ecb update fetchAndUpdateRouteDataForSystemId to include try/catch 2025-01-22 14:36:49 -08:00
420b71258e add test cases for fetchANdUpdateRouteDataForSystemId 2025-01-22 14:35:11 -08:00
f1fd774821 refactor route fetching logic for single system ID to external function 2025-01-22 14:27:12 -08:00
5e5f76afcc add json snapshot for successful routes response 2025-01-22 14:22:45 -08:00
0fe279f069 refactor ApiResponseError check into a function 2025-01-22 14:16:02 -08:00
bbe2c4c7aa add additional test for HTTP status code 2025-01-22 14:03:43 -08:00
1b9a77209f add error pathway and test case for validation 2025-01-22 14:01:57 -08:00
6c9f4691fd add test case for successful system response 2025-01-22 13:44:13 -08:00
045fa3a30a add json snapshot of successful system response 2025-01-22 13:43:53 -08:00
4dd8b450a0 move baseUrl and supported system ids to class level 2025-01-22 13:43:37 -08:00
e4b4683b60 change update helper methods back to protected 2025-01-22 13:41:17 -08:00
0f41ff1868 add test cases 2025-01-22 13:35:39 -08:00
86777a1681 make all loader methods public for improved testing 2025-01-22 13:25:16 -08:00
Brendan Chen
997f63b9f2 Merge pull request #8 from brendan-ch/chore/test-memory-repository 2025-01-21 15:41:13 -08:00
82a69ca464 do the same with eta data 2025-01-21 15:37:28 -08:00
d617d22b6d do the same for ordered stops 2025-01-21 15:34:05 -08:00
7b3f7e5960 do the same with mock stops 2025-01-21 15:25:47 -08:00
dd2fde30b9 do the same for mock routes 2025-01-21 15:22:56 -08:00
02ebeb4782 use generator method for shuttles 2025-01-21 15:19:06 -08:00
f71e589493 fix test with generator method 2025-01-21 15:14:20 -08:00
05b3538a91 add and use generator method for system objects 2025-01-21 15:13:53 -08:00
bfd4c40a10 add remaining tests for 100% test coverage 2025-01-21 15:01:21 -08:00
736d348133 add addOrUpdate tests for UnoptimizedInMemoryRepository 2025-01-21 14:50:48 -08:00
8f66b9ddfb add missing tests according to coverage report 2025-01-21 14:37:21 -08:00
0d9d935a9e add rest of tests (mostly generated) 2025-01-21 14:27:18 -08:00