e78982538e
Add implementation and tests for ParkingStructureResolvers.ts
2025-07-21 19:06:00 -04:00
ee7b5eefda
Rename query interface for historical data
2025-07-19 13:14:39 -04:00
09ee17874d
Update test case naming for ParkingRepositorySharedTests.test.ts to clarify scope of test
2025-07-19 12:50:39 -04:00
182587596c
Change properties to match GraphQL input and query result
2025-07-19 12:15:41 -04:00
8ee1f1522e
Change ParkingStructureCountOptions and HistoricalParkingAverageQueryResult to use Date objects
...
This matches the behavior of `updatedTime` on shuttle objects. When returning API data, dates are converted into milliseconds since Epoch by the DateTime scalar implementation.
2025-07-19 12:12:08 -04:00
ed037cf2d2
Move repositories into folders.
2025-07-19 11:58:45 -04:00
5db4a82535
Update historical average test to actually check the average value
2025-07-03 16:01:14 -04:00
7c359dd775
Move the 200ms delay to before the add call
...
This ensures that a new timestamp is created after the initial call to `addOrUpdateParkingStructure`
2025-07-03 15:40:14 -04:00
b9d5f7b3df
Refactor parking repositories to use dedicated Constants file and smaller functions
2025-07-03 15:19:57 -04:00
7f453157ee
Update timeout within test to avoid UPSERT error
2025-07-02 20:34:29 -04:00
19336ce6ec
Add setLoggingInterval method and implementation for tests and other purposes.
...
Let users control the logging interval of both parking repositories.
2025-07-02 19:48:16 -04:00
868a9f3b1d
Add RedisParkingRepository.ts and convert existing tests to shared tests for both classes
2025-07-02 19:40:45 -04:00
ca2a66509b
Implement getHistoricalAveragesOfParkingStructureCounts for InMemoryParkingRepository.ts, and add tests
2025-07-02 19:10:16 -04:00
2b04ca01a9
Update InMemoryParkingRepository.ts and tests to use the circular queue
2025-07-02 18:48:33 -04:00
8fb296027d
Fix remaining issues with tests, and add implementation within InMemoryParkingRepository.ts
2025-07-01 21:37:26 -04:00
95fa610d77
define behavior of historical data logging through tests
2025-07-01 21:32:26 -04:00
1c7ee9fbc3
change all millisecond references into Dates
2025-04-29 17:05:23 -07:00
b58babc7ea
change updatedTime into a Date
2025-04-29 17:01:51 -07:00
570ab8a178
update tests and mock data generators
2025-04-29 16:18:46 -07:00
fe2b8b2f69
add test cases
2025-04-08 16:45:58 -07:00
c7666c092c
update remaining tests
2025-04-07 19:55:25 -07:00
b6f3e4ccde
update method signatures to not include system id
2025-04-07 19:17:14 -07:00
0076d987ca
rename methods in getter repository
2025-04-07 19:06:18 -07:00
6d762ce620
remove all system related data from shuttle repository
2025-04-06 10:49:47 -07:00
5936c2b743
update tests to match new repository behavior
2025-04-06 09:57:03 -07:00
a144657fa8
update remove implementation and tests
2025-04-06 09:55:23 -07:00
695fec1fce
rename update method and update return types
2025-04-06 09:51:13 -07:00
7e0c1f3539
rename get system method on shuttle repository, update tests
2025-04-06 09:48:55 -07:00
fbc08838df
test unsubscribeFromNotificationChanges method
2025-03-31 20:34:45 -07:00
c6f846d109
add tests for isNotificationScheduled
2025-03-31 20:29:44 -07:00
50148cc2f4
implement RedisNotificationRepository
2025-03-31 20:26:26 -07:00
39066b88bc
have teardown clear all data in redis before starting next test
2025-03-31 20:21:09 -07:00
372ecba952
restructure implementation holders into classes with teardown
2025-03-31 20:07:55 -07:00
998643dc04
add call to connect method in factory
2025-03-31 19:55:56 -07:00
f34a2f27d7
add redis notification repository tests back for edge cases
2025-03-31 19:52:51 -07:00
7a5e1b8561
use describe.each to test the multiple implementations
2025-03-31 19:50:37 -07:00
a7ac9888f6
add setup for repository tests
2025-03-31 19:43:17 -07:00
a84cedd05a
add test and implementation for addOrUpdate listeners
2025-03-27 11:23:07 -07:00
51d66d8886
add tests and implementation for notification deletes
2025-03-27 11:18:43 -07:00
ead401a3b1
add tests for in-memory notification repository
2025-03-27 10:11:41 -07:00
101c5ca6e0
change name of test for in-memory notification repository
2025-03-27 10:07:11 -07:00
7379840070
extract notification repository to interface
2025-03-27 10:06:42 -07:00
c517d93e3a
add test cases and rename some methods
2025-03-27 10:02:13 -07:00
60b626b64f
also rename the tests
2025-03-27 09:35:05 -07:00
fab99db755
rename existing repository to shuttle repository
2025-03-27 09:32:29 -07:00
fe16bc7124
add test case for nonexistent callback
2025-02-02 13:16:28 -08:00
b30e4be895
rename methods for clarity on method events
2025-02-02 13:14:45 -08:00
047ff3a56e
add test cases for the new functions
2025-02-02 13:09:54 -08:00
899b953be5
add test cases
2025-02-02 13:05:13 -08:00
5957010a7f
add test cases and documentation for functions
2025-02-02 13:04:03 -08:00