Skip to content

Commit

Permalink
Extend unit test [notarize]
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed May 10, 2023
1 parent 2cb4cde commit 669036e
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions core/test/configuration/boot/apply-language-configurations.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,34 +419,54 @@ describe('applyLanguageConfigurations', () => {
it('overwrite form labels in custom language configuration', () => {

const forms: Map<TransientFormDefinition> = {
'A:form': { name: 'A:form', categoryName: 'A', fields: {} } as any
'A:form': { name: 'A:form', categoryName: 'A', fields: { a: {} } } as any
};

const coreConfiguration = {
categories: {
A: {
label: 'A Category Core'
label: 'A Category Core',
fields: {
a: {
label: 'A Field Category Core'
}
}
}
}
};

const libraryConfiguration = {
categories: {
A: {
label: 'A Category Library'
label: 'A Category Library',
fields: {
a: {
label: 'A Field Category Library'
}
}
}
},
forms: {
'A:form': {
label: 'A Form Library'
label: 'A Form Library',
fields: {
a: {
label: 'A Field Form Library'
}
}
}
}
};

const customConfiguration = {
categories: {
A: {
label: 'A Custom'
label: 'A Custom',
fields: {
a: {
label: 'A Field Custom'
}
}
}
}
};
Expand All @@ -467,5 +487,7 @@ describe('applyLanguageConfigurations', () => {

expect(forms['A:form'].label.de).toEqual('A Custom');
expect(forms['A:form'].defaultLabel.de).toEqual('A Form Library');
expect(forms['A:form'].fields['a'].label.de).toEqual('A Field Custom');
expect(forms['A:form'].fields['a'].defaultLabel.de).toEqual('A Field Form Library');
});
});

0 comments on commit 669036e

Please sign in to comment.