diff --git a/server/remark-includes.ts b/server/remark-includes.ts index 15c224cbf5..18caf37997 100644 --- a/server/remark-includes.ts +++ b/server/remark-includes.ts @@ -176,7 +176,6 @@ export function parseParamDefaults(expr: string): ParameterAssignments { if (!!firstLineMatches && firstLineMatches[1].includes("=")) { assignments = parseAssignments(firstLineMatches[1]); } - console.log("paramUses", paramUses); if (paramUses.length == 0) { return assignments; } diff --git a/uvu-tests/remark-includes.test.ts b/uvu-tests/remark-includes.test.ts index b841ecd320..1c0d65312d 100644 --- a/uvu-tests/remark-includes.test.ts +++ b/uvu-tests/remark-includes.test.ts @@ -340,7 +340,7 @@ Suite("parsePartialParams correctly parses parameter assignments", () => { }); }); -Suite.only( +Suite( "parseParamDefaults correctly parses default parameter assignments", () => { interface testCase { @@ -425,16 +425,15 @@ It also includes the {{ second }} param.`, { description: "partial with three params and two defaults", shouldThrow: false, - input: ` -{{ first="1" second="2" }} + input: `{{ first="1" second="2" }} This is a partial with a {{ first }}. It also includes the {{ second }} param. Finally, there is {{ third }}. `, expected: { - first: "1", - second: "2", + first: `"1"`, + second: `"2"`, third: "", }, },