forked from hubotio/hubot
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(robot): test robot.loadFile with coffee script file
trying to parseHelp for a coffeescript file causes unexpexted syntax errors becuase coffe-script is not registered - causes hubotio#1376
- Loading branch information
timkinnane
committed
Jul 29, 2017
1 parent
1f8d46e
commit b8b2895
Showing
2 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Description: | ||
# Says pong when you say ping | ||
# | ||
# Commands: | ||
# hubot <ping> - replies @user pong | ||
# | ||
sinon = require 'sinon' | ||
module.exports = sinon.spy (robot) -> | ||
robot.respond /ping/i, (res) -> | ||
res.reply 'pong' |