Skip to content

Commit

Permalink
Also apply formatting to xform-dsl
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelidlessness committed Sep 18, 2024
1 parent a78b88b commit d5ef76f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/common/src/test/fixtures/xform-dsl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,19 +151,19 @@ export const select1Dynamic: select1Dynamic = (
...[ref, nodesetRef, valueRef, labelRef]: Select1DynamicParameters
): XFormsElement => {
if (valueRef == null && labelRef == null) {
const value = t("value ref=\"value\"");
const label = t("label ref=\"label\"");
const value = t('value ref="value"');
const label = t('label ref="label"');

const itemsetAttributes = new Map<string, string>();

itemsetAttributes.set("nodeset", nodesetRef);
itemsetAttributes.set('nodeset', nodesetRef);

const itemset = new TagXFormsElement("itemset", itemsetAttributes, [value, label]);
const itemset = new TagXFormsElement('itemset', itemsetAttributes, [value, label]);
const select1Attributes = new Map<string, string>();

select1Attributes.set("ref", ref);
select1Attributes.set('ref', ref);

return new TagXFormsElement("select1", select1Attributes, [itemset]);
return new TagXFormsElement('select1', select1Attributes, [itemset]);
}

return t(
Expand Down Expand Up @@ -223,7 +223,7 @@ export const label = (innerHtml: string): XFormsElement => {
*/
export const labelRef = (ref: string) => {
return new TagXFormsElement('label', new Map([['ref', ref]]), []);
}
};

// eslint-disable-next-line @typescript-eslint/no-shadow
export const item = (value: Int | string, label: string): XFormsElement => {
Expand Down

0 comments on commit d5ef76f

Please sign in to comment.