Commit Graph

72 Commits

Author SHA1 Message Date
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
2d4f866308 add test cases for orderedStop resolver 2025-01-28 16:26:31 -08:00
2a56bfb3ef add test cases for shuttles resolver 2025-01-28 16:21:54 -08:00
f2c1f605ae add queries and execution methods 2025-01-28 16:17:20 -08:00
b09228fe5d add test cases for route resolver tests 2025-01-28 15:56:25 -08:00
2b3d292b4d move response fetch to common method and use single expectedEta object across both tests 2025-01-28 15:52:23 -08:00
9c35b03a5b update test data for correctness 2025-01-28 15:47:06 -08:00
caf85a39ad add test case for eta stop 2025-01-28 15:44:53 -08:00
f198af8b13 use addMockSystemToRepository method in other tests 2025-01-28 15:35:49 -08:00
4b84527fa4 extract mock system add to repository setup helpers file 2025-01-28 15:33:38 -08:00
d03a99ee06 add test cases for eta resolver tests 2025-01-28 15:30:54 -08:00
96846cbd88 add remaining test cases for ordered stop resolvers 2025-01-28 15:25:09 -08:00
95492bd319 remove testcases for null values (no effect on test coverage) 2025-01-28 15:08:44 -08:00
3aeaca6844 add test for associated route 2025-01-28 15:07:54 -08:00