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

Add Robot.react to Hubot >= v3.0.0 #16

Merged
merged 2 commits into from
Nov 5, 2017
Merged

Add Robot.react to Hubot >= v3.0.0 #16

merged 2 commits into from
Nov 5, 2017

Conversation

mbland
Copy link
Owner

@mbland mbland commented Nov 5, 2017

Addresses the issue described in #15. In short, hubot-test-helper v1.8.0 depends on hubot-v3.0.0, both are rewrites from CoffeeScript to ES2015, and consequently hubot-slack adds Robot.react to a CoffeeScript-compatible wrapper function, leading to smoke and integration test failures.

The implementation of slackapi/hubot-slack#429 (CoffeeScript-to-ES2015 rewrite) should include a fix that will eliminate the need for this workaround.

Also adds a callback to fix the DeprecationWarning that Node.js started emitting from tests/integration-test.js:

(node:85642) [DEP0013] DeprecationWarning: Calling an asynchronous
  function without callback is deprecated.

By following the process event warning instructions in the Node.js API docs, I was able to emit the stack trace pinpointing the fs.write call as the offender.

Bland, Mike added 2 commits November 5, 2017 15:20
At some point Node.js started emitting this warning from
`tests/integration-test.js`:

  (node:85642) [DEP0013] DeprecationWarning: Calling an asynchronous
    function without callback is deprecated.

By following the instructions in the Node.js API docs, I was able to
emit the stack trace pinpointing this `fs.write` call as the offender:

  https://nodejs.org/api/process.html#process_event_warning
Addresses the issue described in #15. In short, hubot-test-helper v1.8.0
depends on hubot-v3.0.0, both are rewrites from CoffeeScript to ES2015,
and consequently hubot-slack adds Robot.react to a CoffeeScript-
compatible wrapper function, leading to smoke and integration test
failures.

The implementation of slackapi/hubot-slack#429 (CoffeeScript-to-ES2015
rewrite) should include a fix that will eliminate the need for this
workaround.
@mbland mbland added this to the v1.2.0 milestone Nov 5, 2017
@mbland mbland self-assigned this Nov 5, 2017
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling a84ca77 on es2015-fix into ** on master**.

1 similar comment
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling a84ca77 on es2015-fix into ** on master**.

@mbland mbland merged commit 418b1d7 into master Nov 5, 2017
@mbland mbland deleted the es2015-fix branch November 5, 2017 21:20
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