   it 'renders the listing without archived courses', ->
     courseList = _.flatten([MASTER_COURSES_LIST, STUDENT_ARCHIVED_COURSE])
     CourseListingActions.loaded(courseList)
-    wrapper = shallow(<CourseListing />)
+    wrapper = shallow(<CourseListing />, EnzymeContext.withDnD())
     expect(wrapper.find("CourseLink[courseId='#{STUDENT_ARCHIVED_COURSE.id}']")).to.have.length(0)
     undefined
 
   it 'renders add course action if user is teacher', ->
     loadTeacherUser()
-    wrapper = mount(<CourseListing />)
+    wrapper = mount(<CourseListing />, EnzymeContext.withDnD())
     expect(wrapper.find(".course-listing-add-zone")).to.have.length(1)
     undefined
 

    loadTeacherUser()
    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-controls"))


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