Wikimedia

Wiki Ed Dashboard: using mocha, add tests for the functionality of the StudentList component

The dashboard uses mocha to write unit tests of React components and other javascript files.

Create a new mocha test file to exercise the main features of the StudentList component, app/assets/javascripts/components/students/student_list.jsx.

You can find examples of existing mocha tests in the tests directory.

You can run the javascript test suite with the command npm test.

To complete this task, you'll first need to set up a Wiki Ed Dashboard development environment: https://github.com/WikiEducationFoundation/WikiEduDashboard/blob/master/docs/setup.md

Task tags

  • react
  • javascript
  • testing
  • mocha

Students who completed this task

Filip

Task type

  • code Code
close

2016