mirror of
https://github.com/lucaspalomodevelop/JSSTE.git
synced 2026-03-13 07:19:37 +00:00
add one test
This commit is contained in:
parent
e6c762be9c
commit
7ac2b9c7ad
5
index.js
5
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;
|
||||
|
||||
@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user