Skip to content

Commit

Permalink
Fix failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 21, 2012
1 parent 61d8b1a commit 98fb4d3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/adapter-test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ describe 'XmppBot', ->

describe '#read()', ->
bot = Bot.use()
bot.robot =
bot.robot =
logger:
error: ->

Expand Down Expand Up @@ -303,7 +303,6 @@ describe 'XmppBot', ->
bot.client.send = (msg) ->
assert.equal msg.parent.attrs.to, 'test@example.com'
assert.equal msg.parent.attrs.type, 'groupchat'
assert.equal msg.parent.attrs.from, bot.options.username
assert.equal msg.getText(), 'testing'
done()

Expand All @@ -318,7 +317,6 @@ describe 'XmppBot', ->
bot.client.send = (msg) ->
assert.equal msg.parent.attrs.to, 'test@example.com/mark'
assert.equal msg.parent.attrs.type, 'direct'
assert.equal msg.parent.attrs.from, bot.options.username
assert.equal msg.getText(), 'testing'
done()

Expand All @@ -333,12 +331,7 @@ describe 'XmppBot', ->
bot.client.send = (msg) ->
assert.equal msg.parent.attrs.to, 'test@example.com'
assert.equal msg.parent.attrs.type, 'groupchat'
assert.equal msg.parent.attrs.from, bot.options.username
assert.equal msg.getText(), 'testing'
done()

bot.send user, 'testing'




0 comments on commit 98fb4d3

Please sign in to comment.