mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
test(server): seed the calendar service spec through the factories
Converts the raw prepare() fixtures in the calendar service spec to the ORM factories: reservation times, metadata and endpoints, stays, stops and place addresses are written through insertRow and updateRows. The stay helpers become async, so their callers await them. The timezone cache case seeds its 1010 bulk bookings and their endpoints with two insertRows batches instead of a raw transaction. The unused canAccessTrip and isOwner entries are dropped from the database mock.
This commit is contained in: