test(api): match UserControllerTest with new behavior

the `ageRestriction` DTO now omits fields instead of having them be null
so this updates the test to check via `doesNotExist()`
This commit is contained in:
James Ward 2026-04-22 23:37:36 -04:00
parent 2762352dfe
commit 2dca806838
No known key found for this signature in database
GPG key ID: D335E3AE3B71D896

View file

@ -113,7 +113,7 @@ class UserControllerTest(
jsonPath("$.sharedLibrariesId") { doesNotExist() }
jsonPath("$.labelsAllow") { isEmpty() }
jsonPath("$.labelsExclude") { isEmpty() }
jsonPath("$.ageRestriction") { isEmpty() }
jsonPath("$.ageRestriction") { doesNotExist() }
}
}
}