From 8a71484934246d3072fea22a234bd02a7c8253de Mon Sep 17 00:00:00 2001 From: Codex Date: Tue, 18 Aug 2026 15:07:40 +0900 Subject: [PATCH] style(rooms): apply prettier formatting to room-registration test Fold in the pre-commit prettier reflow that the previous commit did not restage. No behavior change. Co-Authored-By: Claude Opus 4.7 --- src/db/room-registration.test.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/db/room-registration.test.ts b/src/db/room-registration.test.ts index ae97bb8..725c215 100644 --- a/src/db/room-registration.test.ts +++ b/src/db/room-registration.test.ts @@ -27,10 +27,9 @@ describe('getStoredRoomSettingsRowFromDatabase mode_source resilience', () => { function seedWithSource(source: string) { const db = openInitializedInMemoryDatabase(); insertStoredRoomSettings(db, jid, 'single', 'explicit', snapshot); - db.prepare('UPDATE room_settings SET mode_source = ? WHERE chat_jid = ?').run( - source, - jid, - ); + db.prepare( + 'UPDATE room_settings SET mode_source = ? WHERE chat_jid = ?', + ).run(source, jid); return db; } @@ -61,11 +60,12 @@ describe('getStoredRoomSettingsRowFromDatabase mode_source resilience', () => { // mode_source has no such CHECK, so a bad value persists — which is exactly // the corruption the loader now tolerates instead of dropping the room. - db.prepare('UPDATE room_settings SET mode_source = ? WHERE chat_jid = ?').run( - 'room', - jid, + db.prepare( + 'UPDATE room_settings SET mode_source = ? WHERE chat_jid = ?', + ).run('room', jid); + expect(getStoredRoomSettingsRowFromDatabase(db, jid)?.roomMode).toBe( + 'single', ); - expect(getStoredRoomSettingsRowFromDatabase(db, jid)?.roomMode).toBe('single'); }); it('preserves a valid mode_source unchanged', () => {