Skip to content

cli-test: fs.unlink → fs.unlinkSync to fix test failure on Node 10#701

Merged
phillipj merged 1 commit into
janl:masterfrom
andersk:unlinkSync
Jun 26, 2019
Merged

cli-test: fs.unlink → fs.unlinkSync to fix test failure on Node 10#701
phillipj merged 1 commit into
janl:masterfrom
andersk:unlinkSync

Conversation

@andersk

@andersk andersk commented Jun 19, 2019

Copy link
Copy Markdown
Contributor

Fixes this failure:

  1) Mustache CLI without partials writes rendered template into the file specified by the third argument:
     Uncaught TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
      at makeCallback (fs.js:136:11)
      at Object.unlink (fs.js:943:14)
      at test/cli-test.js:86:12
      at ChildProcess.exithandler (child_process.js:285:7)
      at maybeClose (internal/child_process.js:982:16)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

Fixes this failure:

      1) Mustache CLI without partials writes rendered template into the file specified by the third argument:
         Uncaught TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
          at makeCallback (fs.js:136:11)
          at Object.unlink (fs.js:943:14)
          at test/cli-test.js:86:12
          at ChildProcess.exithandler (child_process.js:285:7)
          at maybeClose (internal/child_process.js:982:16)
          at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

Signed-off-by: Anders Kaseorg <[email protected]>
@phillipj

Copy link
Copy Markdown
Collaborator

Thanks a lot for your contribution! 👍

Verified this indeed is an issue for Node.js 10 & 12 with this Travis CI build: https://travis-ci.org/janl/mustache.js/builds/550977559.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants