       # elements focused on or clicked on outside the modal should be checked
       @click(root, element.checkAllowed)
       expect(@props.filterClick).to.have.been.called
-

      )
      el.dispatchEvent(ev)

  it 'sets isLoaded class if api call is pending', ->
    sinon.stub(api, 'isPending').returns(true)
    Testing.renderComponent( CCModal, props: @props).then ({dom}) ->

{Testing, sinon, _, React} = require 'shared/specs/helpers'

jest.mock 'navigation/model'
Navigation = require 'navigation/model'
last = require 'lodash/last'
{CCModal} = require 'concept-coach/modal'
api = require 'api'

