jakob.scheid
f41c5c407f
test(settings): add settings validator test cases
...
Added test cases to the settings validator unit test to test the
selection setting default value array handling when allowMultiple is
true.
2026-07-30 10:45:58 +02:00
jakob.scheid and Gitea
68a827a113
test(settings): add describe to settingsValidator test
2026-07-28 20:15:58 +02:00
jakob.scheid
e0e2033fdf
refactor(settings)!: pass path to getSettingsRecursively using an array instead of a string
...
Tests and all files the utility is used in are also updated.
Warning: This change is breaking!
2026-07-28 20:10:27 +02:00
jakob.scheid
bd30579923
refactor(settings): move setttings path normalization utility to a separate file
...
Moved the normalizePagePath utility from the settings page composable to
a separate utility file and restructured tests accordingly.
2026-07-28 20:10:23 +02:00
jakob.scheid
d6e7104f82
refactor(settings): remove unused utility
...
Removed the utility getSectionHeadingLevel and its tests.
2026-07-28 20:10:22 +02:00
jakob.scheid and jakob.scheid
2fb747f587
feat(settings): add utility functions to get settings
...
Utility function getSetting for getting a first-level setting from a
list of settings and unit tests.
Utility function getSettingRecursively to get any setting from a list
of settings. The setting can be at any nesting level in the settings
list and unit tests.
2026-07-28 20:08:38 +02:00
jakob.scheid and jakob.scheid
9a193d28af
feat(settings): add utility function to determine the level of a settings section heading
2026-07-28 20:06:25 +02:00
jakob.scheid
192f3c37a9
feat(settings): add test cases to test that only sections are allowed as first-level settings
2026-06-05 11:37:17 +02:00
jakob.scheid
b729b85ad0
feat(settings): allow only sections as first-level settings
2026-06-05 11:35:41 +02:00
jakob.scheid and Gitea
1473dcf060
test(settings): add test cases for the selection setting allowMultiple property to the settings validator unit test
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
8702648624
test(settings): add unit test for the settings validator validateSettingsConfig function
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
88819f5684
test(settings): add test cases for the settings validator validateSelectionOptions function for test cases that should throw an error
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
98940eeec4
test(settings): add test cases for the settings validator validateEntry function for test cases that should throw an error
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
5c8073d264
test(settings): add unit test for the settings validator validateEntry function for test cases that should throw an error
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
ecf9074522
test(settings): add unit test for the settings validator validateEntry function for test cases that should not throw an error
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
ea87e0832a
test(settings): add unit test for the settings validator validateSelectionOptions function for test cases that should throw an error
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
f4121bf419
test(settings): add unit test for the settings validator validateSelectionOptions function for test cases that should not throw an error
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
bf317eea35
test(settings): update test description for the unit test for the settings validator assertString function for test cases that should throw an error
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
948d6d41e8
test(settings): add unit test for the settings validator assertType function for test cases that should throw an error
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
867b3a41f8
test(settings): add unit test for the settings validator assertType function for test cases that should not throw an error
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
e0268b6e6c
test(settings): add unit test for the settings validator assertString function for test cases that should not throw an error
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
156b3b552c
test(settings): add unit test for the settings validator assertString function for test cases that should throw an error
2026-06-04 17:27:42 +02:00
jakob.scheid and Gitea
39e6c94d09
test(settings): Add settings validator utility test boilerplate
2026-06-04 17:27:42 +02:00