test(settings): add unit test for the settings validator validateEntry function for test cases that should not throw an error

This commit is contained in:
2026-06-04 14:53:47 +02:00
committed by Gitea
parent ea87e0832a
commit ecf9074522
2 changed files with 45 additions and 2 deletions
@@ -40,7 +40,7 @@ export const validateSelectionOptions = function validateSelectionOptions (optio
});
}
function validateEntry(entry, path) {
export const validateEntry = function validateEntry (entry, path) {
assertType(entry.type, `${path}.type`);
if (entry.type === 'section') {