Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): upgrade mocha (and growl) version #203

Merged
merged 1 commit into from
Sep 14, 2018
Merged

Conversation

kylekwong
Copy link
Contributor

What

  • Upgrades mocha to most recent version

Why

  • Newer versions of mocha have an updated version of growl (older versions have a known security vulnerability).

@@ -33,7 +33,7 @@ describe('resource base', () => {
}
});

return resource._transmit('POST', null, null, null, (err) => {
resource._transmit('POST', null, null, null, (err) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

why did you have to make this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here we're returning a promise AND defining a callback function in the _transmit call; newer version of mocha don't let you do both. Here's what the error looks like when we do:

 1) resource base
       should expose the raw response on 500 level errors:
     Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
      at resource._transmit (test/resourceBase.js:38:14)
      at tryCatcher (node_modules/bluebird/js/release/util.js:16:23)
      at Promise.errorAdapter [as _rejectionHandler0] (node_modules/bluebird/js/release/nodeify.js:35:34)
      at Promise._settlePromise (node_modules/bluebird/js/release/promise.js:566:21)
      at Promise._settlePromise0 (node_modules/bluebird/js/release/promise.js:614:10)
      at Promise._settlePromises (node_modules/bluebird/js/release/promise.js:689:18)
      at Async._drainQueue (node_modules/bluebird/js/release/async.js:133:16)
      at Async._drainQueues (node_modules/bluebird/js/release/async.js:143:10)
      at Immediate.Async.drainQueues (node_modules/bluebird/js/release/async.js:17:14)

Copy link

@arkadiyt arkadiyt left a comment

Choose a reason for hiding this comment

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

lgtm thanks!

Copy link
Contributor

@pallavi pallavi left a comment

Choose a reason for hiding this comment

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

LGTM

@pallavi pallavi assigned kylekwong and unassigned sjl2 and pallavi Sep 14, 2018
@kylekwong kylekwong merged commit 14cef3a into master Sep 14, 2018
@kylekwong kylekwong deleted the update-mocha branch September 14, 2018 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

4 participants