From 88819f56845b2663822c6cf4a62dad3476fe8c22 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Thu, 4 Jun 2026 15:27:55 +0200 Subject: [PATCH] test(settings): add test cases for the settings validator validateSelectionOptions function for test cases that should throw an error --- .../settings/utils/__tests__/settingsValidator.test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/features/settings/utils/__tests__/settingsValidator.test.js b/src/features/settings/utils/__tests__/settingsValidator.test.js index 9fbe840..5f0a98a 100644 --- a/src/features/settings/utils/__tests__/settingsValidator.test.js +++ b/src/features/settings/utils/__tests__/settingsValidator.test.js @@ -160,6 +160,11 @@ describe('validateSelectionOptions', () => { }); test.for([ + [[{}]], + [[{ i18n: '' }]], + [[{ i18n: 'a' }]], + [[{ name: 'a' }]], + [[{ name: '' }]], [[{ name: '', i18n: 'test.label' }]], [[{ name: 'test', i18n: '' }]], [[{ name: '', i18n: '' }]],