Permalink
Browse files

Fixed bug in using parsed in render function

  • Loading branch information...
1 parent 9b03e49 commit 1c0c7b97962a8d12e39eb33fcc50efcf182dc185 RayMorgan committed Dec 20, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/mu.js
  2. +1 −1 test/run_examples_test.js
View
@@ -48,7 +48,7 @@ mu.compile = function(filename, callback, unique) {
i++;
} else {
- callback(undefined, parsed);
+ callback(undefined, [parsed, {}]);
}
}());
});
@@ -34,7 +34,7 @@ mu.root = path.join(__dirname, 'examples');
var buffer = '';
- mu.render(name + '.html', js)
+ mu.render(parsed, js)
.on('data', function (c) { buffer += c.toString(); })
.on('end', function () {
assert.equal(buffer, text);

0 comments on commit 1c0c7b9

Please sign in to comment.