Skip to content

Commit 958273c

Browse files
committed
Add object option to test runner
1 parent 1c2b74e commit 958273c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/env/common.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ global.compileWithPartials = function(string, hashOrArray, partials) {
2929
var template,
3030
ary,
3131
options;
32-
if (Object.prototype.toString.call(hashOrArray) === '[object Array]') {
32+
if (hashOrArray && hashOrArray.hash) {
33+
ary = [hashOrArray.hash, hashOrArray];
34+
delete hashOrArray.hash;
35+
} else if (Object.prototype.toString.call(hashOrArray) === '[object Array]') {
3336
ary = [];
3437
ary.push(hashOrArray[0]);
3538
ary.push({ helpers: hashOrArray[1], partials: hashOrArray[2] });

0 commit comments

Comments
 (0)