Skip to content

Commit c35f2f4

Browse files
committed
fix: correct spacing in variations template and add invalid style preset
1 parent 7cf3173 commit c35f2f4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/generators/variations.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const variations = createLoom({
1717
inputSchema: variationsInputSchema,
1818
optionsSchema: variationsOptionsSchema,
1919
template: (ctx, item) => {
20-
return `${item.codePoints.join(" ")} ${ctx.options.separator} ${item.style} ${ctx.options.separator} ${ctx.options.commentPrefix} ${item.comment}`;
20+
return `${item.codePoints.join(" ")} ${ctx.options.separator} ${item.style}${ctx.options.separator} ${ctx.options.commentPrefix} ${item.comment}`;
2121
},
2222
eof: true,
2323
presets: {
@@ -87,5 +87,12 @@ export const variations = createLoom({
8787
comment: "medical symbol as emoji",
8888
},
8989
],
90+
invalid: [
91+
{
92+
codePoints: ["2600", "FE0E", "FE0F"],
93+
style: "invalid-style",
94+
comment: "",
95+
},
96+
],
9097
},
9198
});

0 commit comments

Comments
 (0)