 
   it 'redirects to dashboard for a single course', ->
     CourseListingActions.loaded([STUDENT_COURSE_ONE_MODEL])
-    wrapper = shallow(<CourseListing />)
+    wrapper = shallow(<CourseListing />, EnzymeContext.withDnD())
     expect(wrapper.find('Redirect[to="/course/1"]')).to.have.length(1)
     undefined


  it 'renders empty courses if course list only contains archived course', ->
    CourseListingActions.loaded([STUDENT_ARCHIVED_COURSE])
    wrapper = shallow(<CourseListing />)
    expect(wrapper.find("EmptyCourses")).to.have.length(1)
    undefined

  it 'renders course appropriate flag', ->
    CourseListingActions.loaded(MASTER_COURSES_LIST)
    wrapper = mount(<CourseListing />)
    for course, i in MASTER_COURSES_LIST
      expect(
        wrapper.find("[data-course-id='#{course.id}'] .course-listing-item-brand").render().text()

    loadTeacherUser()
    CourseListingActions.loaded(MASTER_COURSES_LIST)

    wrapper = mount(<CourseListing />, EnzymeContext.withDnD())

    for course, i in MASTER_COURSES_LIST
      expect(wrapper.find("[data-course-id='#{course.id}'] .course-listing-item-controls"))
