diff --git a/index.js b/index.js index bc044fc..a24c025 100644 --- a/index.js +++ b/index.js @@ -90,7 +90,7 @@ function wrapNode (state, cb) { catch (err) { throw new SyntaxError(err.message); } - }, + } }; var cache = {}; diff --git a/test/wrap.js b/test/wrap.js index d539e62..50f1a71 100644 --- a/test/wrap.js +++ b/test/wrap.js @@ -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 }); };