summaryrefslogtreecommitdiffstats
path: root/spec/env/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/env/common.js')
-rw-r--r--spec/env/common.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/env/common.js b/spec/env/common.js
index e551837..92cc611 100644
--- a/spec/env/common.js
+++ b/spec/env/common.js
@@ -19,6 +19,10 @@ global.compileWithPartials = function(string, hashOrArray, partials) {
ary.push(hashOrArray[0]);
ary.push({ helpers: hashOrArray[1], partials: hashOrArray[2] });
options = {compat: hashOrArray[3]};
+ if (hashOrArray[4] != null) {
+ options.data = !!hashOrArray[4];
+ ary[1].data = hashOrArray[4];
+ }
} else {
ary = [hashOrArray];
}