Additional test coverage

This commit is contained in:
kpdecker
2014-08-15 00:05:37 -05:00
parent 6f22ec1e01
commit 9f07a34955
5 changed files with 111 additions and 14 deletions
+4
View File
@@ -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];
}