From f579f036920844d72c8f5c434f9ed48004b662f6 Mon Sep 17 00:00:00 2001 From: Maurice Date: Thu, 8 Oct 2026 18:03:34 +0200 Subject: [PATCH] test(server): drop the dashes from two reworded spec comments The permissions and plugin RPC fallback comments were reworded when their raw SQL went away; this keeps the new wording in line with the comment style used elsewhere in the converted specs. --- server/tests/unit/nest/permissions.service.test.ts | 2 +- server/tests/unit/plugins/rpc-fallbacks.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = {