Skip to content

Commit

Permalink
reverted clean up of unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
John Agan committed Jun 17, 2016
1 parent e5dd2f8 commit c244c3d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/stubs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,18 @@ beforeEach ->
return dm if dm.name is name
openDM: (user_id, callback) =>
user = @stubs.client.dataStore.getUserById user_id
@stubs.client.dataStore.dms.push {
name: user.name,
@stubs.client.dataStore.dms.push
name: user.name
id: 'D1234'
}
sendMessage: (msg) =>
@stubs._msg = if @stubs._msg then @stubs._msg + msg else msg
callback?()
users: [@stubs.user, @stubs.self]
dms: [
name: 'user2'
id: 'D5432'
sendMessage: (msg) =>
@stubs._dmmsg = if @stubs._dmmsg then @stubs._dmmsg + msg else msg
]
# Hubot.Robot instance
@stubs.robot = do ->
Expand Down

0 comments on commit c244c3d

Please sign in to comment.