mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 05:26:47 +00:00
6a7b55b13b
Converts the raw prepare() fixtures and reads in the reservations service spec to the ORM factories: expense links, stays, stops, endpoints, day positions and guest flags are written through insertRow and updateRows, and the narrow SELECT post-conditions read whole rows through findRow and findRows, compared with toMatchObject so they still assert exactly the columns the projection named. stopsOn keeps returning only the three columns its toEqual assertions compare, and the helpers that now await become async. The one write left raw carries a test-sql-allow marker: it plants dangling references inside the synchronous foreign_keys = OFF window, which an async ORM write would outlive. The unused canAccessTrip and isOwner entries are dropped from the database mock.