From 7ac2b9c7ad243b88eeffe731ae6cd9ffa86816f5 Mon Sep 17 00:00:00 2001 From: lucaspalomodevelop Date: Mon, 24 May 2021 10:46:40 +0200 Subject: [PATCH] add one test --- index.js | 5 ----- test/test.js | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/index.js b/index.js index 5329e53..c600667 100644 --- a/index.js +++ b/index.js @@ -7,9 +7,4 @@ app.config = { app.render = engine.render; -// app.getTemplateNameFromPage = function(pageName) -// { -// return app.pages.get(pageName)["_TEMPLATE_"] -// } - module.exports = app; diff --git a/test/test.js b/test/test.js index 6aafa03..eb027d0 100644 --- a/test/test.js +++ b/test/test.js @@ -5,9 +5,7 @@ var should = require('chai').should(); describe('test VARS', function() { it('should retrun EXAMPLE', function() { - var result = JSTE.render("{'VAR':'EXAMPLE'}","<[VAR]>"); - // var result = "EXAMPLE"; - console.log("result =" +result); + var result = JSTE.render({'VAR':'EXAMPLE'},"<[VAR]>"); result.should.equal("EXAMPLE"); }); });