Feat(settings): add renderer for settings configuration #142

Merged
jakob.scheid merged 88 commits from feature/settings-renderer into main 2026-07-28 20:14:50 +02:00
Showing only changes of commit 9a8e764f53 - Show all commits
1
@@ -55,18 +55,13 @@ const exampleOptions = [
describe('Selection', () => { describe('Selection', () => {
test('displays options correctly', () => { test('displays options correctly', () => {
const options = [ const wrapper = getWrapper({ options: exampleOptions });
jakob.scheid marked this conversation as resolved Outdated
Outdated
Review

Use the exampleOptions object.

Use the `exampleOptions` object.
{ name: 'o0', i18n: 'o0' },
{ name: 'o1', i18n: 'o1' },
{ name: 'o2', i18n: 'o2' }
];
const wrapper = getWrapper({ options: options });
const listItems = wrapper.findAll('li'); const listItems = wrapper.findAll('li');
expect(listItems.length).toBe(3); expect(listItems.length).toBe(3);
for (let i = 0; i <= 2; i++) { for (let i = 0; i <= 2; i++) {
const option = options[i]; const option = exampleOptions[i];
const listItem = listItems[i]; const listItem = listItems[i];
expect(listItem.find('.input-label').text()).toBe(option.i18n); expect(listItem.find('.input-label').text()).toBe(option.i18n);