Add object option to test runner

This commit is contained in:
kpdecker
2015-08-18 23:13:15 -07:00
parent 1c2b74e537
commit 958273c2e6
+4 -1
View File
@@ -29,7 +29,10 @@ global.compileWithPartials = function(string, hashOrArray, partials) {
var template,
ary,
options;
if (Object.prototype.toString.call(hashOrArray) === '[object Array]') {
if (hashOrArray && hashOrArray.hash) {
ary = [hashOrArray.hash, hashOrArray];
delete hashOrArray.hash;
} else if (Object.prototype.toString.call(hashOrArray) === '[object Array]') {
ary = [];
ary.push(hashOrArray[0]);
ary.push({ helpers: hashOrArray[1], partials: hashOrArray[2] });