       expect(onCollaborationHelp).toHaveBeenCalled()
 
 
-    it 'should call onInviteOthers when click InviteOthersLink element', ->
+    it 'should call passed handler on invite others link click', ->
 
       onInviteOthers   = expect.createSpy()
       channelInfoView  = renderIntoDocument(<ChannelInfoView onInviteOthers={onInviteOthers}/>)

toImmutable     = require 'app/util/toImmutable'
whoami          = require 'app/util/whoami'

{ Simulate
  createRenderer
  renderIntoDocument
  findRenderedDOMComponentWithClass
  scryRenderedDOMComponentsWithClass } = TestUtils


describe 'ChannelInfoView', ->

      expect(channelInfoView.props.children.length).toEqual 3


    it 'should show correct name for bot channel', ->

      options = { typeConstant : 'bot' }
      channel = toImmutable mock.getMockChannel options
