From 2dca8068382287b37e3fa2b38056b1f07fa07036 Mon Sep 17 00:00:00 2001 From: James Ward Date: Wed, 22 Apr 2026 23:37:36 -0400 Subject: [PATCH] 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()` --- .../org/gotson/komga/interfaces/api/rest/UserControllerTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komga/src/test/kotlin/org/gotson/komga/interfaces/api/rest/UserControllerTest.kt b/komga/src/test/kotlin/org/gotson/komga/interfaces/api/rest/UserControllerTest.kt index 3e39faf0..55d74e1b 100644 --- a/komga/src/test/kotlin/org/gotson/komga/interfaces/api/rest/UserControllerTest.kt +++ b/komga/src/test/kotlin/org/gotson/komga/interfaces/api/rest/UserControllerTest.kt @@ -113,7 +113,7 @@ class UserControllerTest( jsonPath("$.sharedLibrariesId") { doesNotExist() } jsonPath("$.labelsAllow") { isEmpty() } jsonPath("$.labelsExclude") { isEmpty() } - jsonPath("$.ageRestriction") { isEmpty() } + jsonPath("$.ageRestriction") { doesNotExist() } } } }