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:
@@ -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', () => {
|
||||
|
||||
Reference in New Issue
Block a user