Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kkpoon committed Apr 6, 2016
1 parent 9b585a6 commit 38a372c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@
"version": "0.1.1",
"author": "K.K. POON <[email protected]>",
"license": "MIT",

"keywords": ["hubot","hubot-scripts","weather","wunderground"],

"keywords": [
"hubot",
"hubot-scripts",
"weather",
"wunderground"
],
"repository": {
"type": "git",
"url": "git://github.com/kkpoon/hubot-weather-underground.git"
},

"bugs": {
"url": "https://github.com/kkpoon/hubot-weather-underground/issues"
},

"dependencies": {
"coffee-script": "~1.6"
},

"devDependencies": {
"mocha": "*",
"chai": "*",
"sinon-chai": "*",
"sinon": "*",
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-mocha-test": "~0.7.0",
"grunt-release": "~0.6.0",
"matchdep": "~0.1.2",
"grunt-contrib-watch": "~0.5.3"
"mocha": "*",
"sinon": "*",
"sinon-chai": "*"
},

"main": "index.coffee",

"scripts": {
"test": "grunt test"
}
Expand Down
8 changes: 4 additions & 4 deletions test/weather-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe 'weather', ->

require('../src/weather')(@robot)

it 'registers a respond listener', ->
expect(@robot.respond).to.have.been.calledWith(/hello/)
it 'registers a respond weather of listener', ->
expect(@robot.respond).to.have.been.calledWith(/weather of (.*)/i)

it 'registers a hear listener', ->
expect(@robot.hear).to.have.been.calledWith(/orly/)
it 'registers a respond what is exactly called listener', ->
expect(@robot.respond).to.have.been.calledWith(/what is (.*) (exactly|exact) (called|named|call|name)[\?]?/i)

0 comments on commit 38a372c

Please sign in to comment.