Use finish event instead of end event when listening for marko template writer to finish

This commit is contained in:
Phil Gates-Idem 2014-10-13 14:12:37 -04:00
parent 46db34dcc3
commit 332cb7150f

View File

@ -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() {