From 332cb7150ff291578bc1ef5cb04ec3ea66dc2fee Mon Sep 17 00:00:00 2001 From: Phil Gates-Idem Date: Mon, 13 Oct 2014 14:12:37 -0400 Subject: [PATCH] Use finish event instead of end event when listening for marko template writer to finish --- test/taglib-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/taglib-test.js b/test/taglib-test.js index a60402579..6f5fead6b 100644 --- a/test/taglib-test.js +++ b/test/taglib-test.js @@ -51,7 +51,7 @@ function testRender(path, data, done, options) { var context = options.context || new Context(new StringBuilder()); marko.render(inputPath, data, context) - .on('end', function() { + .on('finish', function() { var output = context.getOutput(); fs.writeFileSync(actualPath, output, {encoding: 'utf8'}); @@ -72,8 +72,8 @@ function testRender(path, data, done, options) { done(); }) - .on('error', done); - + .on('error', done) + .end(); } xdescribe('marko-widgets/taglib' , function() {