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 <noreply@anthropic.com>
This commit is contained in:
Codex
2026-08-18 15:07:40 +09:00
parent 3930c21625
commit 8a71484934

View File

@@ -27,10 +27,9 @@ describe('getStoredRoomSettingsRowFromDatabase mode_source resilience', () => {
function seedWithSource(source: string) { function seedWithSource(source: string) {
const db = openInitializedInMemoryDatabase(); const db = openInitializedInMemoryDatabase();
insertStoredRoomSettings(db, jid, 'single', 'explicit', snapshot); insertStoredRoomSettings(db, jid, 'single', 'explicit', snapshot);
db.prepare('UPDATE room_settings SET mode_source = ? WHERE chat_jid = ?').run( db.prepare(
source, 'UPDATE room_settings SET mode_source = ? WHERE chat_jid = ?',
jid, ).run(source, jid);
);
return db; 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 // 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. // the corruption the loader now tolerates instead of dropping the room.
db.prepare('UPDATE room_settings SET mode_source = ? WHERE chat_jid = ?').run( db.prepare(
'room', 'UPDATE room_settings SET mode_source = ? WHERE chat_jid = ?',
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', () => { it('preserves a valid mode_source unchanged', () => {