Switch to node 10

This commit is contained in:
Christopher Hoskin
2019-01-16 15:11:49 +00:00
parent 4bd67d5e7e
commit 4c8b619ee8
5 changed files with 1990 additions and 1068 deletions

View File

@@ -33,7 +33,10 @@ compare = (originalPath, generatedPath, callback = (error, same) ->) ->
proc.stderr.on "data", (chunk) -> stderr += chunk
proc.on "exit", () ->
if stderr.trim() == "0 (0)"
fs.unlink diff_file # remove output diff if test matches expected image
# remove output diff if test matches expected image
fs.unlink diff_file, (err) ->
if err
throw err
callback null, true
else
console.log "compare result", stderr