From 15330dfa68d4da99cb61b873b8e4431a9cc5ad6c Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Thu, 5 Mar 2026 10:34:57 -0800 Subject: [PATCH] Delete: Remove old handlebars transpiler test --- tests/4_transpiler/test.js | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 tests/4_transpiler/test.js diff --git a/tests/4_transpiler/test.js b/tests/4_transpiler/test.js deleted file mode 100644 index 38251b5..0000000 --- a/tests/4_transpiler/test.js +++ /dev/null @@ -1,20 +0,0 @@ -export default { - functionName: 'renderTemplate', - prompt: `// Write an async JavaScript function 'renderTemplate' that renders a Handlebars template with data. -// - The function must accept a template string and a data object. -// - You MUST use dynamic import() to load the 'handlebars' library from a CDN. -// - Compile the template and execute it with the provided data. -// - Return the resulting HTML string.`, - runTest: async (renderTemplate) => { - const assert = { - strictEqual: (a, e, m) => { if (a !== e) throw new Error(m || `FAIL: ${a} !== ${e}`) }, - }; - - const template = '

{{name}}

Score: {{score}}

'; - const data = { name: 'Alice', score: 100 }; - const expected = '

Alice

Score: 100

'; - - const result = await renderTemplate(template, data); - assert.strictEqual(result, expected, 'Test Failed: Rendered output does not match expected HTML.'); - } -};