Skip to content

Commit

Permalink
fixed the wrap test by adding block syntax {} around the subterms
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jun 15, 2011
1 parent 190240b commit 826f42d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -90,7 +90,7 @@ function wrapNode (state, cb) {
catch (err) {
throw new SyntaxError(err.message);
}
},
}
};

var cache = {};
Expand Down
4 changes: 2 additions & 2 deletions test/wrap.js
Expand Up @@ -125,8 +125,8 @@ exports.intersperse = function () {
};

burrito.microwave(src, context, function (node) {
if (node.name === 'stat') node.wrap('zzz();%s');
if (node.name === 'stat') node.wrap('{ zzz(); %s }');
});

assert.deepEqual(times, { f : 1, g : 1, zzz : 2 });
assert.deepEqual(times, { f : 1, g : 1, zzz : 3 });
};

0 comments on commit 826f42d

Please sign in to comment.