Commit 3838f978 authored by Ryan LeFevre's avatar Ryan LeFevre

This helps the test pass. I think there is a bug with pngjs where it's...

This helps the test pass. I think there is a bug with pngjs where it's emitting end before it's actually done writing.
parent 8458d991
......@@ -15,6 +15,5 @@ module.exports =
@toPng().then (image) ->
image
.pack()
.on('end', resolve)
.on 'end', -> setTimeout(resolve, 1)
.pipe(fs.createWriteStream(output))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment