Skip to content

Minor updates to tests#2050

Merged
ricardograca merged 3 commits into
bookshelf:masterfrom
mastermatt:odds-n-ends
Jan 31, 2020
Merged

Minor updates to tests#2050
ricardograca merged 3 commits into
bookshelf:masterfrom
mastermatt:odds-n-ends

Conversation

@mastermatt

@mastermatt mastermatt commented Jan 20, 2020

Copy link
Copy Markdown
Contributor

While working on #2049, there were several housekeeping items that popped up for me, as a first time contributor. I didn't want to clutter the original PR, so I'm opening this separate one with things I had stashed.

  • Update calls to the deprecated Buffer constructor in a couple tests
  • Replace Istanbul with nyc
  • Run the formatter

Using `new Buffer` has been deprecated since Node v6 and emits a runtime
warning on Node v10+. `Buffer.from(string[, encoding])` has been the
preferred method since v5.10.
nyc is the command-line-client for Istanbul now
https://istanbul.js.org/

```
npm WARN deprecated istanbul@0.4.5: This module is no longer maintained, try this instead:
npm WARN deprecated   npm i nyc
npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
```

@ricardograca ricardograca left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you for the contribution.

@ricardograca ricardograca merged commit a626e98 into bookshelf:master Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants