mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Use finish event instead of end event when listening for marko template writer to finish
This commit is contained in:
parent
46db34dcc3
commit
332cb7150f
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user