From ba75e3aa5db9e38e3b531b69f6fad273fdd31743 Mon Sep 17 00:00:00 2001 From: Shubh-Raj Date: Tue, 13 Jan 2026 14:04:02 +0530 Subject: [PATCH] fix: correct spelling errors in documentation and source files Fixes #62 - README.md: minmize -> minimize - src/TemplateMarkNodes.ts: implicity -> implicitly - test/TemplateMarkInterpreter.test.ts: templatenName -> templateName Signed-off-by: Shubh-Raj --- README.md | 2 +- src/TemplateMarkNodes.ts | 2 +- test/TemplateMarkInterpreter.test.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cc2aa79..7b499a7 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ We encourage community and commercial innovation in this area! ### 3. Logic FULL -Unlike some templating systems which prohibit, or minmize, logic in templates, Accord Project templates fully embrace templates that may contain sophisticated logic: conditional logic to determine what text to include, or even calculations, for example to calculate the monthly payments for a mortgage based on the term of the mortgage, the amount and the interest rate. +Unlike some templating systems which prohibit, or minimize, logic in templates, Accord Project templates fully embrace templates that may contain sophisticated logic: conditional logic to determine what text to include, or even calculations, for example to calculate the monthly payments for a mortgage based on the term of the mortgage, the amount and the interest rate. ### 4. Type-safety diff --git a/src/TemplateMarkNodes.ts b/src/TemplateMarkNodes.ts index efe9125..d877754 100644 --- a/src/TemplateMarkNodes.ts +++ b/src/TemplateMarkNodes.ts @@ -32,7 +32,7 @@ export const FOREACH_DEFINITION_RE = /^(org\.accordproject\.templatemark)@(.+)\. export type TemplateData = Record; /** - * TemplateMark nodes that implicity change the data access scope + * TemplateMark nodes that implicitly change the data access scope * by specifying the name of a property on the node. */ export const NAVIGATION_NODES = [ diff --git a/test/TemplateMarkInterpreter.test.ts b/test/TemplateMarkInterpreter.test.ts index d0569b2..7ced986 100644 --- a/test/TemplateMarkInterpreter.test.ts +++ b/test/TemplateMarkInterpreter.test.ts @@ -100,10 +100,10 @@ describe('templatemark interpreter', () => { badTemplates.forEach(function (template) { test(`should fail to generate ${template.name}`, async () => { - const templatenName = path.parse(template.name).name; - const model = readFileSync(`${BAD_TEMPLATES_ROOT}/${templatenName}/model.cto`, 'utf-8'); - const templateMarkup = readFileSync(`${BAD_TEMPLATES_ROOT}/${templatenName}/template.md`, 'utf-8'); - const data = JSON.parse(readFileSync(`${BAD_TEMPLATES_ROOT}/${templatenName}/data.json`, 'utf-8')); + const templateName = path.parse(template.name).name; + const model = readFileSync(`${BAD_TEMPLATES_ROOT}/${templateName}/model.cto`, 'utf-8'); + const templateMarkup = readFileSync(`${BAD_TEMPLATES_ROOT}/${templateName}/template.md`, 'utf-8'); + const data = JSON.parse(readFileSync(`${BAD_TEMPLATES_ROOT}/${templateName}/data.json`, 'utf-8')); const modelManager = new ModelManager({ strict: true }); modelManager.addCTOModel(model); const engine = new TemplateMarkInterpreter(modelManager, CLAUSE_LIBRARY);