[Pkg-javascript-commits] [node-jade] 33/72: Normalize
Jelmer Vernooij
jelmer at moszumanska.debian.org
Sun Jul 3 18:03:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
jelmer pushed a commit to annotated tag upstream/1.0.0
in repository node-jade.
commit a9bb5d071aad72b6a0b42684ddd6cf02bf0aa662
Author: Rob Loach <robloach at gmail.com>
Date: Mon Jun 15 14:45:53 2015 -0400
Normalize
---
index.js | 2 +-
test/compile.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.js b/index.js
index 95b755c..70f1d22 100644
--- a/index.js
+++ b/index.js
@@ -133,7 +133,7 @@ Transformer.prototype.compile = function (str, options) {
if (this.can('render')) {
var _this = this;
return tr.normalizeFn(function (locals) {
- return _this._tr.render(str, options, locals);
+ return tr.normalize(_this._tr.render(str, options, locals));
});
}
if (this.can('compileAsync')) {
diff --git a/test/compile.js b/test/compile.js
index 48baec4..3b7d726 100644
--- a/test/compile.js
+++ b/test/compile.js
@@ -53,7 +53,7 @@ test('compile - without tr.compile', function () {
}, /does not support compilation/);
});
-test('compile - without tr.compile, but with tr.render => fn', function (override) {
+test('compile - without tr.compile, but with tr.render => fn', function () {
var tr = createTransformer({
name: 'test',
outputFormat: 'html',
@@ -62,5 +62,5 @@ test('compile - without tr.compile, but with tr.render => fn', function (overrid
return locals.name;
}
});
- assert(tr.compile('example input', {}).fn({name: 'hola'}) === 'hola');
+ assert.equal(tr.compile('example input').fn({name: 'hola'}).body, 'hola');
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jade.git
More information about the Pkg-javascript-commits
mailing list