     loadTeacherUser()
     CourseListingActions.loaded(MASTER_COURSES_LIST)
 
-    wrapper = mount(<CourseListing />)
+    wrapper = mount(<CourseListing />, EnzymeContext.withDnD())
 
     for course, i in MASTER_COURSES_LIST
       expect(wrapper.find("[data-course-id='#{course.id}'] .course-listing-item-controls"))

  it 'renders the listing without archived courses', ->
    courseList = _.flatten([MASTER_COURSES_LIST, STUDENT_ARCHIVED_COURSE])
    CourseListingActions.loaded(courseList)
    wrapper = shallow(<CourseListing />)
    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 />)
    expect(wrapper.find(".course-listing-add-zone")).to.have.length(1)
    undefined



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

  it 'renders course appropriate flag', ->
    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-brand").render().text()
