feat: Adds rooms database tests.

This commit is contained in:
2026-01-30 15:45:54 -05:00
parent 44a0964181
commit e0ec15b91e
2 changed files with 69 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ extension DatabaseClient.Rooms: TestDependencyKey {
model.rectangularSizes?.removeAll {
$0.id == rectangularDuctID
}
if model.rectangularSizes?.count == 0 {
model.rectangularSizes = nil
}
if model.hasChanges {
try await model.save(on: database)
}