   it 'renders past courses in past courses listing', ->
     CourseListingActions.loaded([TEACHER_PAST_COURSE, STUDENT_PAST_COURSE])
 
-    wrapper = mount(<CourseListing />)
+    wrapper = mount(<CourseListing />, EnzymeContext.withDnD())
 
     expect(wrapper.find(".course-listing-past [data-course-id='#{TEACHER_PAST_COURSE.id}']"))
       .to.have.length(1)


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

    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"))
