diff --git a/server/tests/unit/nest/permissions.service.test.ts b/server/tests/unit/nest/permissions.service.test.ts index 27d65d368..41ceffc33 100644 --- a/server/tests/unit/nest/permissions.service.test.ts +++ b/server/tests/unit/nest/permissions.service.test.ts @@ -323,7 +323,7 @@ describe('module-scoped permissions cache', () => { // (checkPermission for a plain member flips with the stored level). await svc.savePermissions({ trip_edit: 'trip_member' }); expect(await secondInstance.checkPermission('trip_edit', 'user', 10, 20, true)).toBe(true); - // A direct row write, then invalidate through permissions-cache — the plain + // A direct row write, then invalidate through permissions-cache, the plain // function backup.impl.ts calls after a restore. Both service instances // must serve the fresh value afterwards. await setAppSetting(t, 'perm_trip_edit', 'trip_owner'); diff --git a/server/tests/unit/plugins/rpc-fallbacks.test.ts b/server/tests/unit/plugins/rpc-fallbacks.test.ts index 727d9a6aa..d34e098d9 100644 --- a/server/tests/unit/plugins/rpc-fallbacks.test.ts +++ b/server/tests/unit/plugins/rpc-fallbacks.test.ts @@ -46,7 +46,7 @@ function guardsFor() { prepare: vi.fn(() => ({ get: () => ({ role: 'user' }), all: () => [] })), } as unknown as TripsRepository; // Plan 3c Task 7: TripsRpc's RP1-RP6 resolve `EntityManager.getRepository(...)` - // now, not a raw `db.prepare` stub — a generic fake repository (same shape regardless + // now, not a raw `db.prepare` stub; a generic fake repository (same shape regardless // of which entity class was requested) covers every RP method these fallback // cases exercise, none of which assert on the repository's specific return value. const em = {