Commit Graph

85 Commits

Author SHA1 Message Date
a6d4b40fba add test cases for endpoints 2025-04-16 16:28:09 -07:00
0ce0c54ddd remove IPassioSystem entity 2025-04-08 16:09:15 -07:00
2741d229f9 rename entities.ts to ShuttleRepositoryEntities.ts 2025-04-08 16:07:48 -07:00
c8ea822626 update query resolver tests to modify the context 2025-04-07 12:37:08 -07:00
1e7082813d reference correct system which is rebuilt every test 2025-04-07 12:26:49 -07:00
2ba64a9b0d attach the context correctly in system resolver tests 2025-04-07 12:18:26 -07:00
9c414be8ce fix test references after removal of addMockSystemToRepository 2025-04-07 12:07:32 -07:00
940d172e87 rename ISystem to IPassioSystem 2025-04-06 10:50:51 -07:00
695fec1fce rename update method and update return types 2025-04-06 09:51:13 -07:00
ef94a9aa7e fix method calls and tests 2025-03-27 10:56:57 -07:00
3761f43909 update server context to only include the notification repository 2025-03-27 10:42:43 -07:00
bda46d6808 rename repository to server repository in server context 2025-03-27 10:38:02 -07:00
09be37cedb move arguments and notification interfaces to notification repository file 2025-03-27 09:57:49 -07:00
4d74027b0e update schema types for backwards compatibility with current schema 2025-03-25 16:16:18 -07:00
717575e004 update query resolvers to add the seconds threshold 2025-03-25 16:00:13 -07:00
96e7e0297b update tests for mutation resolvers 2025-03-25 15:43:00 -07:00
fb49577cf6 add logic to send notification based on a provided threshold 2025-03-25 15:19:09 -07:00
619ef9a27f update naming of classes and tests 2025-03-24 09:20:10 -07:00
e22537d93d add second test for false condition 2025-02-12 19:52:20 -08:00
8971e3514d add isNotificationScheduled resolver and test cases 2025-02-12 19:51:42 -08:00
4c4bd0fc4a swap toStrictEqual to toEqual for cancelNotification test 2025-02-04 11:41:57 -08:00
fa40d15f5a change toStrictEqual to toEqual for notification assertion 2025-02-04 11:40:02 -08:00
e667e89556 add test for if notification doesn't exist on repository 2025-02-04 11:35:24 -08:00
71698da173 fix assertion for nested graphql response 2025-02-04 11:33:48 -08:00
acc4d08716 add a test for cancelling notification 2025-02-04 11:32:33 -08:00
1627bc39fe move duplicate code to method 2025-02-04 11:27:34 -08:00
69e2748eec add additional check for notification service scheduling 2025-02-04 11:25:31 -08:00
94c15f93dd add same test for stop resolvers + extract apollo request to function 2025-02-04 11:24:37 -08:00
3a51d15e63 fix the resolver result 2025-02-04 11:21:54 -08:00
5687f7f600 add second test if shuttle ID doesn't exist in repository 2025-02-04 11:19:58 -08:00
0b9759aff1 update test cases and implement add notification test 2025-02-04 11:18:05 -08:00
b918bf7a67 update test helpers to consolidate ServerContext creation into one method 2025-02-04 10:56:00 -08:00
43f0ef27fc fix typo 2025-02-04 10:43:33 -08:00
d54539e65b add test cases 2025-02-04 10:41:35 -08:00
e1fd1714b9 move mock data generators into test helpers folder 2025-01-29 15:35:15 -08:00
894fbc5a8d rename apollo helper to apolloTestServerHelpers 2025-01-29 15:27:59 -08:00
0344e7b99b use server context method for other resolver tests 2025-01-29 15:26:23 -08:00
7586ebba04 optimize imports for resolver tests 2025-01-29 15:09:31 -08:00
d69197acd8 update eta resolver tests to use new method 2025-01-29 15:08:18 -08:00
fbd0c76b70 extract test server context code into separate method 2025-01-29 15:07:02 -08:00
23ee9ce06b fix failing ordered stop test due to missing system id 2025-01-29 00:08:56 -08:00
fd4a92e34b add shuttle tests 2025-01-29 00:01:36 -08:00
749afc5147 add tests for route resolver 2025-01-28 21:56:59 -08:00
b6356c64e8 add SystemResolvers.stop tests 2025-01-28 21:52:18 -08:00
88d02887e7 add tests to get stops, routes, and shuttles 2025-01-28 21:31:56 -08:00
b3cf13ec4e add queries for resolvers 2025-01-28 20:52:51 -08:00
f391b66b7c add test server and repository for system resolvers 2025-01-28 20:44:18 -08:00
50078adc31 add test cases for system resolvers 2025-01-28 20:40:58 -08:00
fe705ed8e3 add mock shuttle and mock eta methods 2025-01-28 20:35:18 -08:00
3fd8efdd8a add addMockRouteToRepository and addMockStopToRepository methods 2025-01-28 20:31:06 -08:00